Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Private Attributes | List of all members
sw::input::EventCapture Class Reference

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 DebugEventQueryEvent (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< DebugEventm_events
 
Size m_frameNumber
 
Timestamp m_nextTimeStamp
 

Detailed Description

This class provides functionality of capturing events for debug and test purposes.

Constructor & Destructor Documentation

sw::input::EventCapture::EventCapture ( )
explicit
sw::input::EventCapture::~EventCapture ( )
default

Member Function Documentation

void sw::input::EventCapture::GoToNextFrame ( )
bool sw::input::EventCapture::IsNext ( Size  frameNum)
const DebugEvent & sw::input::EventCapture::QueryEvent ( Size  frameNum)
Todo:
Don't ignore 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)
Todo:
Sort events.
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::QueueMouseMove ( int16  deltaX,
int16  deltaY 
)
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.

Member Data Documentation

EventQueue< DebugEvent > sw::input::EventCapture::m_events
private
Size sw::input::EventCapture::m_frameNumber
private
Timestamp sw::input::EventCapture::m_nextTimeStamp
private

The documentation for this class was generated from the following files: