Listener interface that allows to receive notifications when user button states change.
More...
#include <GainputInputListener.h>
Listener interface that allows to receive notifications when user button states change.
- Examples:
- /samples/listener/listenersample.cpp.
◆ GetPriority()
virtual int gainput::MappedInputListener::GetPriority |
( |
| ) |
const |
|
inlinevirtual |
◆ OnUserButtonBool()
virtual bool gainput::MappedInputListener::OnUserButtonBool |
( |
UserButtonId |
userButton, |
|
|
bool |
oldValue, |
|
|
bool |
newValue |
|
) |
| |
|
inlinevirtual |
Called when a bool-type button state changes.
- Parameters
-
userButton | The user button's ID. |
oldValue | Previous state of the button. |
newValue | New state of the button. |
- Returns
- true if the button may be processed by listeners with a lower priority, false otherwise.
◆ OnUserButtonFloat()
virtual bool gainput::MappedInputListener::OnUserButtonFloat |
( |
UserButtonId |
userButton, |
|
|
float |
oldValue, |
|
|
float |
newValue |
|
) |
| |
|
inlinevirtual |
Called when a float-type button state changes.
- Parameters
-
userButton | The user button's ID. |
oldValue | Previous state of the button. |
newValue | New state of the button. |
- Returns
- true if the button may be processed by listeners with a lower priority, false otherwise.
The documentation for this class was generated from the following file: