iInputBinder Struct 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 iInputBinder:

Public Methods | |
virtual iEventHandler * | QueryHandler ()=0 |
Get a pointer to the embedded iEventHander This class can be registered with the event queue: EventQueue->RegisterListener(InputBinder->QueryHandler (), CSMASK_Input);. | |
virtual void | Bind (iEvent &, iInputBinderBoolean *, bool toggle=false)=0 |
Bind a bool to a keyboard key or mouse or joystick button status. | |
virtual void | Bind (iEvent &, iInputBinderPosition *)=0 |
Bind two int's to the x and y axes of a mouse or joystick. | |
virtual bool | Unbind (iEvent &)=0 |
Remove a binding. | |
virtual bool | UnbindAll ()=0 |
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 60 of file binder.h.
Member Function Documentation
|
Bind two int's to the x and y axes of a mouse or joystick.
Implemented in csInputBinder. |
|
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. Implemented in csInputBinder. |
|
Get a pointer to the embedded iEventHander This class can be registered with the event queue: EventQueue->RegisterListener(InputBinder->QueryHandler (), CSMASK_Input);.
Implemented in csInputBinder. |
|
Remove a binding.
Implemented in csInputBinder. |
|
Remove all bindings.
Implemented in csInputBinder. |
The documentation for this struct was generated from the following file:
- iutil/binder.h
Generated for Crystal Space by doxygen 1.2.18