![]() |
Public API Reference |
#include <csevent.h>
Inheritance diagram for csEvent:
Public Methods | |
csEvent () | |
Empty initializer. More... | |
csEvent (csEvent const &) | |
Cloning constructor. More... | |
csEvent (csTicks, int type, int kcode, int kchar, int modifiers) | |
Create a keyboard event object. More... | |
csEvent (csTicks, int type, int x, int y, int button, int modifiers) | |
Create a mouse event object. More... | |
csEvent (csTicks, int type, int n, int x, int y, int button, int modifiers) | |
Create a joystick event object. More... | |
csEvent (csTicks, int type, int code, void *info=0) | |
Create a command event object. More... | |
virtual | ~csEvent () |
Destructor. More... | |
virtual bool | Add (const char *name, int8 v) |
Add a named event with a given parameter. More... | |
virtual bool | Find (const char *name, int8 &v, int index=0) |
Find a named event for a given type. More... |
Events can be generated by hardware (keyboard, mouse) as well as by software. There are so much constructors of this class as much different types of events exists.
Definition at line 53 of file csevent.h.
|
Empty initializer.
|
|
Cloning constructor. Note that for command style events, this performs only a shallow copy of the `Info' attribute. |
|
Create a keyboard event object.
|
|
Create a mouse event object.
|
|
Create a joystick event object.
|
|
Create a command event object.
|
|
Destructor.
|
|
Add a named event with a given parameter.
Implements iEvent. |
|
Find a named event for a given type.
Implements iEvent. |