![]() |
Public API Reference |
#include <csinput.h>
Inheritance diagram for iMouseDriver:
Public Methods | |
virtual void | SetDoubleClickTime (int iTime, size_t iDist)=0 |
Set double-click mouse parameters. More... | |
virtual void | Reset ()=0 |
Call to release all mouse buttons * (when focus switches from application window, for example). More... | |
virtual int | GetLastX ()=0 |
Query last mouse X position. More... | |
virtual int | GetLastY ()=0 |
Query last mouse Y position. More... | |
virtual bool | GetLastButton (int button)=0 |
Query the last known mouse button state. More... | |
virtual void | DoButton (int button, bool down, int x, int y)=0 |
Call this to add a 'mouse button down/up' event to queue. More... | |
virtual void | DoMotion (int x, int y)=0 |
Call this to add a 'mouse moved' event to queue. More... |
Mouse driver should generate events and put them into the event queue. Also it is responsible for generating double-click events. Typically, one instance of this object is available from the shared-object registry (iObjectRegistry) under the name "crystalspace.driver.input.generic.mouse".
Definition at line 82 of file iutil/csinput.h.
|
Call this to add a 'mouse button down/up' event to queue.
Implemented in csMouseDriver. |
|
Call this to add a 'mouse moved' event to queue.
Implemented in csMouseDriver. |
|
Query the last known mouse button state.
Implemented in csMouseDriver. |
|
Query last mouse X position.
Implemented in csMouseDriver. |
|
Query last mouse Y position.
Implemented in csMouseDriver. |
|
Call to release all mouse buttons * (when focus switches from application window, for example).
Implemented in csMouseDriver. |
|
Set double-click mouse parameters.
Implemented in csMouseDriver. |