InputRecordingDevice

Records input received by an InputDevice. Used to generate recorded input benchmarking demos (and possibly input macros in future?).

Constructors

this
this(const InputDevice input)

Construct a recording device capable of recording input from specified input device.

Destructor

~this
~this()

Destroy a recording device.

Members

Functions

keyboardRecording
Recording!Keyboard keyboardRecording()

Get input recorded from the keyboard since the last startRecording() call.

mouseRecording
Recording!Mouse mouseRecording()

Get input recorded from the mouse since the last startRecording() call.

startRecording
void startRecording()

Start recording.

state
RecordingState state()

Get the current recording state (are we recording? first frame before recording?).

stopRecording
void stopRecording()

Stop recording.

update
void update()

Update the recording device. If recording enabled, record input for the current frame.

Meta