csMouseDriver Class Reference
Generic Mouse Driver. More...
#include <csutil/csinput.h>
Inheritance diagram for csMouseDriver:

Public Member Functions | |
csMouseDriver (iObjectRegistry *) | |
Initialize mouse interface. | |
virtual | ~csMouseDriver () |
Destructor. | |
virtual void | SetDoubleClickTime (int iTime, size_t iDist) |
Set double-click mouse parameters. | |
virtual void | Reset () |
Call to release all mouse buttons. | |
virtual int | GetLastX () |
Query last mouse X position. | |
virtual int | GetLastY () |
Query last mouse Y position. | |
virtual bool | GetLastButton (int button) |
Query the last known mouse button state. | |
virtual void | DoButton (int button, bool down, int x, int y) |
Call this to add a 'mouse button down/up' event to queue. | |
virtual void | DoMotion (int x, int y) |
Call this to add a 'mouse moved' event to queue. | |
virtual void | LostFocus () |
Application lost focus. | |
Public Attributes | |
csMouseDriver::eiEventHandler | scfiEventHandler |
iEventHandler implementation | |
Protected Member Functions | |
iKeyboardDriver * | GetKeyboardDriver () |
Get the generic keyboard driver (for checking modifier states). | |
Protected Attributes | |
csTicks | LastClickTime |
Last "mouse down" event time. | |
int | LastClickButton |
Last "mouse down" event button. | |
int | LastClickX |
Last "mouse down" event position. | |
int | LastClickY |
Last "mouse down" event position. | |
int | LastX |
Last mouse position. | |
int | LastY |
Last mouse position. | |
bool | Button [CS_MAX_MOUSE_BUTTONS] |
Mouse buttons state. | |
csTicks | DoubleClickTime |
Mouse double click max interval in 1/1000 seconds. | |
size_t | DoubleClickDist |
Mouse double click max distance. |
Detailed Description
Generic Mouse Driver.Mouse driver should generate events and put them into the event queue. Also it is responsible for generating double-click events. Mouse button numbers are 1-based.
Definition at line 196 of file csinput.h.
Constructor & Destructor Documentation
|
Initialize mouse interface.
|
|
Destructor.
|
Member Function Documentation
|
Call this to add a 'mouse button down/up' event to queue.
Implements iMouseDriver. |
|
Call this to add a 'mouse moved' event to queue.
Implements iMouseDriver. |
|
Get the generic keyboard driver (for checking modifier states).
|
|
Query the last known mouse button state.
Implements iMouseDriver. |
|
Query last mouse X position.
Implements iMouseDriver. |
|
Query last mouse Y position.
Implements iMouseDriver. |
|
Application lost focus.
Implements csInputDriver. Definition at line 252 of file csinput.h. References iMouseDriver::Reset(). |
|
Call to release all mouse buttons.
Implements iMouseDriver. |
|
Set double-click mouse parameters.
Implements iMouseDriver. |
Member Data Documentation
|
Mouse buttons state.
|
|
Mouse double click max distance.
|
|
Mouse double click max interval in 1/1000 seconds.
|
|
Last "mouse down" event button.
|
|
Last "mouse down" event time.
|
|
Last "mouse down" event position.
|
|
Last "mouse down" event position.
|
|
Last mouse position.
|
|
Last mouse position.
|
|
iEventHandler implementation
|
The documentation for this class was generated from the following file:
- csutil/csinput.h
Generated for Crystal Space by doxygen 1.3.9.1