![]() |
Public API Reference |
#include <csinput.h>
Inheritance diagram for csMouseDriver:
Public Methods | |
csMouseDriver (iObjectRegistry *) | |
Initialize mouse interface. More... | |
virtual | ~csMouseDriver () |
Destructor. More... | |
virtual void | SetDoubleClickTime (int iTime, size_t iDist) |
Set double-click mouse parameters. More... | |
virtual void | Reset () |
Call to release all mouse buttons. More... | |
virtual int | GetLastX () |
Query last mouse X position. More... | |
virtual int | GetLastY () |
Query last mouse Y position. More... | |
virtual bool | GetLastButton (int button) |
Query the last known mouse button state. More... | |
virtual void | DoButton (int button, bool down, int x, int y) |
Call this to add a 'mouse button down/up' event to queue. More... | |
virtual void | DoMotion (int x, int y) |
Call this to add a 'mouse moved' event to queue. More... | |
virtual void | LostFocus () |
Application lost focus. More... | |
Public Attributes | |
csMouseDriver::eiEventHandler | scfiEventHandler |
iEventHandler implementation. More... | |
Protected Methods | |
iKeyboardDriver * | GetKeyboardDriver () |
Get the generic keyboard driver (for checking modifier states). More... | |
Protected Attributes | |
csTicks | LastClickTime |
Last "mouse down" event time. More... | |
int | LastClickButton |
Last "mouse down" event button. More... | |
int | LastClickX |
Last "mouse down" event position. More... | |
int | LastClickY |
Last "mouse down" event position. More... | |
int | LastX |
Last mouse position. More... | |
int | LastY |
Last mouse position. More... | |
bool | Button [CS_MAX_MOUSE_BUTTONS] |
Mouse buttons state. More... | |
csTicks | DoubleClickTime |
Mouse double click max interval in 1/1000 seconds. More... | |
size_t | DoubleClickDist |
Mouse double click max distance. More... |
Mouse driver should generate events and put them into the event queue. Also it is responsible for generating double-click events.
Definition at line 115 of file csutil/csinput.h.
|
Initialize mouse interface.
|
|
Destructor.
|
|
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. Definition at line 158 of file csutil/csinput.h. References Button, and CS_MAX_MOUSE_BUTTONS. |
|
Query last mouse X position.
Implements iMouseDriver. Definition at line 154 of file csutil/csinput.h. References LastX. |
|
Query last mouse Y position.
Implements iMouseDriver. Definition at line 156 of file csutil/csinput.h. References LastY. |
|
Application lost focus.
Implements csInputDriver. Definition at line 170 of file csutil/csinput.h. References Reset. |
|
Call to release all mouse buttons.
Implements iMouseDriver. Referenced by LostFocus. |
|
Set double-click mouse parameters.
Implements iMouseDriver. |
|
Mouse buttons state.
Definition at line 131 of file csutil/csinput.h. Referenced by GetLastButton. |
|
Mouse double click max distance.
Definition at line 135 of file csutil/csinput.h. |
|
Mouse double click max interval in 1/1000 seconds.
Definition at line 133 of file csutil/csinput.h. |
|
Last "mouse down" event button.
Definition at line 125 of file csutil/csinput.h. |
|
Last "mouse down" event time.
Definition at line 123 of file csutil/csinput.h. |
|
Last "mouse down" event position.
Definition at line 127 of file csutil/csinput.h. |
|
Last "mouse down" event position.
Definition at line 127 of file csutil/csinput.h. |
|
Last mouse position.
Definition at line 129 of file csutil/csinput.h. Referenced by GetLastX. |
|
Last mouse position.
Definition at line 129 of file csutil/csinput.h. Referenced by GetLastY. |
|
iEventHandler implementation.
|