PDA

View Full Version : how do i deal with "controller" in Qt ??



alabdaly
27th July 2010, 05:24
how do i deal with "controller" in Qt ??

tbscope
27th July 2010, 05:36
Please explain "controller".

Do you mean a model/view controller? This is called a delegate in Qt

alabdaly
27th July 2010, 07:58
no,i mean pc controler for games
like this
http://s2.hubimg.com/u/1262693_f260.jpg

wysota
27th July 2010, 08:31
Do you mean a model/view controller? This is called a delegate in Qt
Delegate and controller (MVC) are different things.

GreenScape
27th July 2010, 08:42
maybe via QKeyEvent ?

alabdaly
27th July 2010, 09:09
QKeyEvent don't encapsulate controller events.
in general QEvent don't encapsulate controller events.

wysota
27th July 2010, 09:22
How about taking your gamedev documentation and checking out how it communicates with the system? Qt won't help you much here, it will just give you access to system events via QCoreApplication::winEventFilter().