csInputBinder Class Reference
Bind an input event to a pointer to a variable so that that variable will reflect the state of a given key, button or axis. More...
#include <binder.h>
Inheritance diagram for csInputBinder:

Public Methods | |
csInputBinder (iBase *parent=0, int size=127) | |
Create a new binder with an initial bindings hash size. | |
virtual | ~csInputBinder () |
Destructor invokes UnbindAll() automatically. | |
virtual iEventHandler * | QueryHandler () |
Get a pointer to the embedded event handler. | |
virtual void | Bind (iEvent &, iInputBinderBoolean *, bool toggle=false) |
Bind a bool to a keyboard key or mouse or joystick button status. | |
virtual void | Bind (iEvent &, iInputBinderPosition *) |
Bind two integers to the x and y axes of a mouse or joystick. | |
virtual bool | Unbind (iEvent &) |
Remove a binding. | |
virtual bool | UnbindAll () |
Remove all bindings. |
Detailed Description
Bind an input event to a pointer to a variable so that that variable will reflect the state of a given key, button or axis.
Definition at line 36 of file binder.h.
Constructor & Destructor Documentation
|
Create a new binder with an initial bindings hash size. For optimum hash storage, size should be a prime number. |
|
Destructor invokes UnbindAll() automatically.
|
Member Function Documentation
|
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. |
|
Remove a binding.
Implements iInputBinder. |
|
Remove all bindings.
Implements iInputBinder. |
The documentation for this class was generated from the following file:
- csutil/binder.h
Generated for Crystal Space by doxygen 1.2.18