Input::InputEvent Class Reference
#include <inputevent.h>
Detailed Description
The input events of the Input subsystems. Input events are generated by the InputServer and travel through the input handler chain where they are processed.(C) 2007 Radon Labs GmbH
Public Types | |
enum | Type |
input event types | |
Public Member Functions | |
InputEvent () | |
default constructor | |
void | SetType (Type t) |
set event type | |
Type | GetType () const |
get event type | |
void | SetKey (Key::Code key) |
set key code | |
Key::Code | GetKey () const |
get key code | |
void | SetChar (Char chr) |
set character code | |
Char | GetChar () const |
get character code | |
void | SetMouseButton (MouseButton::Code button) |
set button code | |
MouseButton::Code | GetMouseButton () const |
get button code | |
void | SetDeviceIndex (IndexT i) |
set optional device index (e.g. player index for game pads) | |
IndexT | GetDeviceIndex () const |
get device index | |
void | SetAbsMousePos (const Math::float2 &p) |
set absolute pixel mouse position | |
const Math::float2 & | GetAbsMousePos () const |
get absolute pixel mouse position | |
void | SetNormMousePos (const Math::float2 &p) |
set normalized mouse position | |
const Math::float2 & | GetNormMousePos () const |
get normalized mouse position | |
Static Public Member Functions | |
static const char * | TypeToString (Type t) |
convert type to string |