![]() |
Public API Reference |
#include <binder.h>
Inheritance diagram for csInputBinder:
Public Methods | |
csInputBinder (iBase *parent=NULL, int size=127) | |
Create a new binder with an initial bindings hash size. More... | |
virtual | ~csInputBinder () |
Destructor invokes UnbindAll() automatically. More... | |
virtual iEventHandler * | QueryHandler () |
Get a pointer to the embedded event handler. More... | |
virtual void | Bind (iEvent &, iInputBinderBoolean *, bool toggle=false) |
Bind a bool to a keyboard key or mouse or joystick button status. More... | |
virtual void | Bind (iEvent &, iInputBinderPosition *) |
Bind two integers to the x and y axes of a mouse or joystick. More... | |
virtual bool | Unbind (iEvent &) |
Remove a binding. More... | |
virtual bool | UnbindAll () |
Remove all bindings. More... |
Definition at line 36 of file csutil/binder.h.
|
Create a new binder with an initial bindings hash size. For optimum hash storage, size should be a prime number. |
|
Destructor invokes UnbindAll() automatically.
|
|
Bind two integers to the x and y axes of a mouse or joystick.
Implements iInputBinder. |
|
Bind a bool to a keyboard key or mouse or joystick button status. If toggle is true, one press activates and the second deactivates. Otherwise, keydown activates and keyup deactivates. Implements iInputBinder. |
|
Get a pointer to the embedded event handler. This class can be registered with the event queue: iEventQueue::RegisterListener(this, CSMASK_Input); Implements iInputBinder. Definition at line 70 of file csutil/binder.h. |
|
Remove a binding.
Implements iInputBinder. |
|
Remove all bindings.
Implements iInputBinder. |