Sleeping Wombat GUI
0.100
swGUI
|
This class provides functionality of capturing events for debug and test purposes. More...
#include <EventCapture.h>
Public Member Functions | |
EventCapture () | |
~EventCapture ()=default | |
Manually add events. | |
void | QueueUpKeyEvent (Keyboard::PhysicalKeys key) |
Adds key event to current frame and gives it next timstamp. More... | |
void | QueueDownKeyEvent (Keyboard::PhysicalKeys key) |
void | QueueKeyEvent (KeyState state, Keyboard::PhysicalKeys key) |
void | QueueMouseClick (Mouse::PhysicalButtons button) |
void | QueueMouseUp (Mouse::PhysicalButtons button) |
void | QueueMouseEvent (KeyState state, Mouse::PhysicalButtons key) |
void | QueueMouseMove (int16 deltaX, int16 deltaY) |
For DebugInput | |
void | GoToNextFrame () |
const DebugEvent & | QueryEvent (Size frameNum) |
bool | IsNext (Size frameNum) |
void | QueueEvent (const DeviceEvent &event, Size frameNum, DeviceType deviceType, uint8 deviceIdx=0) |
void | QueueEvent (const DebugEvent &event) |
Private Attributes | |
EventQueue< DebugEvent > | m_events |
Size | m_frameNumber |
Timestamp | m_nextTimeStamp |
This class provides functionality of capturing events for debug and test purposes.
|
explicit |
|
default |
void sw::input::EventCapture::GoToNextFrame | ( | ) |
bool sw::input::EventCapture::IsNext | ( | Size | frameNum | ) |
const DebugEvent & sw::input::EventCapture::QueryEvent | ( | Size | frameNum | ) |
void sw::input::EventCapture::QueueDownKeyEvent | ( | Keyboard::PhysicalKeys | key | ) |
void sw::input::EventCapture::QueueEvent | ( | const DeviceEvent & | event, |
Size | frameNum, | ||
DeviceType | deviceType, | ||
uint8 | deviceIdx = 0 |
||
) |
void sw::input::EventCapture::QueueEvent | ( | const DebugEvent & | event | ) |
void sw::input::EventCapture::QueueKeyEvent | ( | KeyState | state, |
Keyboard::PhysicalKeys | key | ||
) |
void sw::input::EventCapture::QueueMouseClick | ( | Mouse::PhysicalButtons | button | ) |
void sw::input::EventCapture::QueueMouseEvent | ( | KeyState | state, |
Mouse::PhysicalButtons | key | ||
) |
void sw::input::EventCapture::QueueMouseUp | ( | Mouse::PhysicalButtons | button | ) |
void sw::input::EventCapture::QueueUpKeyEvent | ( | Keyboard::PhysicalKeys | key | ) |
Adds key event to current frame and gives it next timstamp.
|
private |
|
private |
|
private |