[gluon] FW: Input Actions for Gluon Input GCI Task

[ Thread Index | Date Index | More lists.tuxfamily.org/gluon Archives ]


Whoops, forgot to subscribe before sending this.

> -----Original Message-----
> From: Tony Young [mailto:rofflwaffls@xxxxxxxxx]
> Sent: Wednesday, 1 December 2010 1:44 p.m.
> To: 'Arjen Hiemstra'
> Cc: 'gluon@xxxxxxxxxxxxxxxxxxx'
> Subject: Input Actions for Gluon Input GCI Task
> 
> Hi there,
> 
> I would just like to ask a few questions regarding the Google Code-In
task:
> http://www.google-
> melange.com/gci/task/show/google/gci2010/kde/t129021691853
> 
> From the conversations I've had with leinir and djszapi in #gluon, I've
> come up with http://pastebin.com/b8Z6FiF6
> 
> There are no GluonInput-specific implementations in the code and it's very
> generic. It uses Qt signals for notifying anything interested in input
> actions and, by overriding checkActionState of InputAction, one can
> determine if their action has triggered or not, and which state it's in
> (Up or Down) by calling update on the InputAction every frame (simplified
> by using InputActionManager).
> 
> An action can be created by subclassing InputAction and overriding the
> pure virtual method checkActionState which returns either None, Up or Down
> depending on the action's state.
> 
> What I'm not sure about is whether or not if I actually need to implement
> any interface to GluonInput. I've been told that I don't need to, and an
> abstract implementation of actions is fine, but since this is your task
> I'd like to just check with you.
> 
> Waiting for your reply,
> Tony


---
+----------------------------------------------+
Gluon is a high-level game development library for the KDE desktop enviornment.
http://gluon.tuxfamily.org/
http://gitorious.org/gluon



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/