|
Gainput
v1.0.0
|
Plays back a previously recorded sequence of device state changes. More...
#include <GainputInputPlayer.h>
Public Member Functions | |
| InputPlayer (InputManager &manager, InputRecording *recording=0) | |
| Initializes the player. More... | |
| ~InputPlayer () | |
| Destructs the player. | |
| void | Update (InputDeltaState *delta) |
| Updates the player, called internally from InputManager::Update(). | |
| void | Start () |
| Starts the playback. More... | |
| void | Stop () |
| Stops the Playback. | |
| bool | IsPlaying () const |
| Returns if the player is currently playing. | |
| void | SetRecording (InputRecording *recording) |
| Sets the recording to play. | |
| InputRecording * | GetRecording () |
| Returns the currently set recording. | |
| const InputRecording * | GetRecording () const |
| Returns the currently set recording. | |
Plays back a previously recorded sequence of device state changes.
In order for input recording to be available, Gainput must have been built with GAINPUT_ENABLE_RECORDER defined.
| gainput::InputPlayer::InputPlayer | ( | InputManager & | manager, |
| InputRecording * | recording = 0 |
||
| ) |
Initializes the player.
| manager | The manager to receive the device state changes. |
| recording | The recording to play, may be 0. |
| void gainput::InputPlayer::Start | ( | ) |
Starts the playback.
A recording must have been provided before doing this, either through the constructor or SetRecording().
1.8.13