Home | All Classes | Grouped Classes | Index | Search
Input Button interface. More...
Derived from:
none
Derived by:
none
Group: Display (Input)
#include <ClanLib/display.h>
Construction:
Constructor. |
Attributes:
Returns the number of presses this inputbutton has been pressed. | |
Returns the CL_InputEvent of the last input press. |
Operations:
Copy assignment operator. | |
Binds a key. | |
Unbinds a key. | |
Unbinds all keys. | |
Returns a list over all keys bound to this inputbutton. | |
Returns the number of presses this inputbutton has been pressed. This clears the state of this inputbutton. | |
Returns the CL_InputEvent of the last input press. This clears the state of the inputbutton. | |
Clears the state of the inputbutton. |
Detailed description:
!group=Display/Input! !header=display.h! Use this class to bind inputevents to this class. You can then check if any input events has be activated (like a mouse-press, a certain keypress etc). Useful for things like mapping SPACE and LEFT MOUSE to a Fire Action.