Game Development Community

Need some clarifications about GUIControl focusing

by Charlie Talley · in Torque X 2D · 10/04/2009 (5:45 am) · 2 replies

So as I understand it, the general input process goes something like this :

-Global input map get's first crack at an input event

-GUICanvas goes second
1.The GUICanvas first checks to see if a certain GUIControl has been designated as the focus control,
and if so, allows that control and all it's parents a shot a processing the input event.
2.If none of the focused-control hierarchy processes the input event, the GUICanvas starts going through
it's current gui hierarchy that was set with SetContentControl(). It traverses up the hierarchy.

-Finally, if none of the above handles the input event, the stack of InputMaps that is stored inside the Input Manager gets traversed to see if any of them handles the input event.


Is this about right? Anything wrong? Any thoughts or comments?

#1
10/11/2009 (4:12 am)
Have you checked out John Kanalakis' book: The Complete Guide to Torque X for XNA.

Chapter 8: Creating a Robust Player Object starts by explaining input management.

The heirarchy is like this from lowest level to highest level:
Device Input
Input Manager
Input Maps
Move Manager
Player Manager