CL_InputButton_Basic3
Cl_inputbutton interface used to ease manual implementation of a input button.
Class members
CL_InputButton_Basic()
CL_InputButton_Basic(-
bool state)
- virtual
~CL_InputButton_Basic()
- virtual bool
is_pressed()
- void
set_state( -
bool state)
Members with descriptions
CL_InputButton_Basic()-
Description:
Constructs an input button defaulting to not being pressed (false).
CL_InputButton_Basic(-
bool state)
Description:
Constructs an input button defaulting to state.
- virtual
~CL_InputButton_Basic() -
Description:
- virtual bool
is_pressed() -
Description:
Returns true if the button is pressed.
Return value:
True if pressed, false otherwise.
- void
set_state( -
bool state)
Parameters: state - New button state. True = up, False = down.
Description:
Changes the current button state. If state is true, the button will beup, otherwise down.