The Nebula Device 3: Input::InputEvent Class Reference

The Nebula Device 3

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 SetAbsMousePos (const Math::float2 &p)
 set absolute pixel mouse position
const Math::float2GetAbsMousePos () const
 get absolute pixel mouse position
void SetNormMousePos (const Math::float2 &p)
 set normalized mouse position
const Math::float2GetNormMousePos () const
 get normalized mouse position