Game Development Community

Mouse Events in the GUI

by Nicholas Bellerophon · in Torque Game Builder · 02/23/2009 (3:39 pm) · 0 replies


Hey all,

I'm having trouble understanding how to use the mouseEvent callbacks for specific gui objects.

To be precise, I want to use the functionality with a button I have added to my mainScreen.gui.

I have checked the 'useMouseEvents' box... but where, and in what form, must I put the callback?

I already have my sceneWindow2D::onMouse callbacks... but they deal with mouse events in the sceneWindow... whereas I want to deal with mouse events in the space occupied by my gui control.

Can anyone help or direct me to the appropriate spot?

Thanks,

-Nicholas Bellerophon

About the author

Recent Threads