Game Development Community

Mouse Event Question

by Pedro Melendez · in Torque X 2D · 04/17/2007 (12:58 pm) · 1 replies

Hi,

I'm making a game of cards and I'm trying to use the mouse for select the card to play. The problem is that documentation is very basic and there aren't examples that use the mouse in the way that I trying to use it.

I read this in the docs:

The Torque event system let's you listen to the events of your choice in a manner very similar to .NET events. For example, to receive a callback for every mouse input event, you'd add the following lines of code:

TorqueEventManager.ListenEvents(TorqueInputDevice.MouseEvent, processMouseEvent);

The thing is that ListenEvents is the form ListenEvents and in any place (or where I was searching) explain what class we have to use in T.

So please anyone knows how can I get in code the events from the mouse? o where can I found that?

Thanks,

PD: Sorry for my bad english, I'm still learning it.