In file libs/csinput/csinput.h:

class csMouseDriver

This is the lowest-level interface to mouse

Inheritance:


Public Fields

bool Button[10]
Mouse buttons state (only 9 supported :-))
static size_t DoubleClickDist
Mouse double click max distance
static time_t DoubleClickTime
Mouse double click max interval in 1/1000 seconds

Public Methods

virtual void Close()
Finish receiving mouse events
csMouseDriver()
Initialize mouse interface
void do_buttonpress(time_t evtime, int button, int x, int y, bool shift, bool alt, bool ctrl)
Call this to add a 'mouse button down' event to queue
void do_buttonrelease(time_t evtime, int button, int x, int y)
Call this to add a 'mouse button up' event to queue
void do_mousemotion(time_t evtime, int x, int y)
Call this to add a 'mouse moved' event to queue
virtual bool Open(ISystem* System, csEventQueue *EvQueue)
Start receiving mouse events
virtual bool Ready()
Check if mouse driver is ready
virtual void Reset()
Call to release all mouse buttons (when focus switches from application window, for example)
virtual ~csMouseDriver()
Deinitialize mouse interface

Protected Fields

csEventQueue* EventQueue
Event queue which keyboard driver is bound to
int LastClickButton
Last "mouse down" event button
time_t LastClickTime
Last "mouse down" event time
int LastClickX
Last "mouse down" event position
int LastMouseX
Last mouse position

Documentation

This is the lowest-level interface to mouse.

Mouse driver should generate events and put them into the event queue which is passed to object on Open().

csEventQueue* EventQueue
Event queue which keyboard driver is bound to

time_t LastClickTime
Last "mouse down" event time

int LastClickButton
Last "mouse down" event button

int LastClickX
Last "mouse down" event position

int LastMouseX
Last mouse position

bool Button[10]
Mouse buttons state (only 9 supported :-))

static time_t DoubleClickTime
Mouse double click max interval in 1/1000 seconds

static size_t DoubleClickDist
Mouse double click max distance

csMouseDriver()
Initialize mouse interface

virtual ~csMouseDriver()
Deinitialize mouse interface

virtual bool Open(ISystem* System, csEventQueue *EvQueue)
Start receiving mouse events

virtual void Close()
Finish receiving mouse events

virtual bool Ready()
Check if mouse driver is ready

virtual void Reset()
Call to release all mouse buttons (when focus switches from application window, for example)

void do_buttonpress(time_t evtime, int button, int x, int y, bool shift, bool alt, bool ctrl)
Call this to add a 'mouse button down' event to queue

void do_buttonrelease(time_t evtime, int button, int x, int y)
Call this to add a 'mouse button up' event to queue

void do_mousemotion(time_t evtime, int x, int y)
Call this to add a 'mouse moved' event to queue


Direct child classes:
SysMouseDriver
SysMouseDriver
SysMouseDriver
SysMouseDriver
SysMouseDriver
SysMouseDriver

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de