Stores a list of input state changes.
More...
#include <GainputInputDeltaState.h>
Stores a list of input state changes.
- Examples:
- /samples/gesture/gesturesample.cpp.
◆ AddChange() [1/2]
void gainput::InputDeltaState::AddChange |
( |
DeviceId |
device, |
|
|
DeviceButtonId |
deviceButton, |
|
|
bool |
oldValue, |
|
|
bool |
newValue |
|
) |
| |
Add a state change for a bool-type button.
- Parameters
-
device | The input device the change occurred on. |
deviceButton | The input button that was changed. |
oldValue | The old button state. |
newValue | The new button state. |
◆ AddChange() [2/2]
void gainput::InputDeltaState::AddChange |
( |
DeviceId |
device, |
|
|
DeviceButtonId |
deviceButton, |
|
|
float |
oldValue, |
|
|
float |
newValue |
|
) |
| |
Add a state change for a float-type button.
- Parameters
-
device | The input device the change occurred on. |
deviceButton | The input button that was changed. |
oldValue | The old button state. |
newValue | The new button state. |
◆ NotifyListeners()
void gainput::InputDeltaState::NotifyListeners |
( |
Array< InputListener *> & |
listeners | ) |
const |
Notifies all input listeners of the previously recorded state changes.
- Parameters
-
listeners | A list of input listeners to notify. |
The documentation for this class was generated from the following file: