Binding mouse in SpaceScroller Demo
by Tom Ogburn · in Torque Game Builder · 12/16/2005 (7:15 am) · 0 replies
I am using T2D 1.1 Alpha. What special setting do I need to change to allow mouse clicks/movements in the space scroller? My bindings are as follows:
The zAxis is the only one that actually gets called. Are all the others being caught by the GUI, or something else? How do I pass them on?
Or is this impossible and I have to use the callbacks?
playerMap.bind(mouse, button0, MouseLeftClick); playerMap.bind(mouse, button1, MouseRightClick); playerMap.bind(mouse, xaxis, MouseXAxisMove); playerMap.bind(mouse, yaxis, MouseYAxisMove); playerMap.bind(mouse, zaxis, MouseZAxisMove); //Mouse scroll wheel
The zAxis is the only one that actually gets called. Are all the others being caught by the GUI, or something else? How do I pass them on?
Or is this impossible and I have to use the callbacks?
function spaceScrollerSceneWindow2D::onMouseDown( %this, %modifier, %worldPosition, %mouseClicks )
About the author
Owner of Starlit Sky Games, Senior Developer / Architect at Migration.Mobi