Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Public Attributes | List of all members
sw::input::DeviceEvent Struct Reference

KeyStates changed events. More...

#include <InputDeviceEvent.h>

Public Member Functions

 DeviceEvent ()
 
 DeviceEvent (KeyEvent evt, Timestamp timestamp)
 
 DeviceEvent (CharacterEvent evt, Timestamp timestamp)
 
 DeviceEvent (ButtonEvent evt, Timestamp timestamp)
 
 DeviceEvent (AxisEvent evt, Timestamp timestamp)
 
 DeviceEvent (CursorEvent evt, Timestamp timestamp)
 
 DeviceEvent (const DeviceEvent &second)
 
void operator= (const DeviceEvent &second)
 

Public Attributes

union {
   KeyEvent   Key
 
   CharacterEvent   Character
 
   ButtonEvent   Button
 
   AxisEvent   Axis
 
   CursorEvent   Cursor
 
}; 
 
DeviceEventType Type
 
Timestamp LogicalTime
 

Detailed Description

KeyStates changed events.

Constructor & Destructor Documentation

sw::input::DeviceEvent::DeviceEvent ( )
inline
sw::input::DeviceEvent::DeviceEvent ( KeyEvent  evt,
Timestamp  timestamp 
)
inline
sw::input::DeviceEvent::DeviceEvent ( CharacterEvent  evt,
Timestamp  timestamp 
)
inline
sw::input::DeviceEvent::DeviceEvent ( ButtonEvent  evt,
Timestamp  timestamp 
)
inline
sw::input::DeviceEvent::DeviceEvent ( AxisEvent  evt,
Timestamp  timestamp 
)
inline
sw::input::DeviceEvent::DeviceEvent ( CursorEvent  evt,
Timestamp  timestamp 
)
inline
sw::input::DeviceEvent::DeviceEvent ( const DeviceEvent second)
inline

Member Function Documentation

void sw::input::DeviceEvent::operator= ( const DeviceEvent second)
inline

Member Data Documentation

union { ... }
AxisEvent sw::input::DeviceEvent::Axis
ButtonEvent sw::input::DeviceEvent::Button
CharacterEvent sw::input::DeviceEvent::Character
CursorEvent sw::input::DeviceEvent::Cursor
KeyEvent sw::input::DeviceEvent::Key
Timestamp sw::input::DeviceEvent::LogicalTime

You can compare this counter with counters in other devices, to compare events order. This doesn't work between frames.

DeviceEventType sw::input::DeviceEvent::Type

The documentation for this struct was generated from the following file: