The Nebula Device 3: CoreGraphics::DisplayEvent Class Reference

The Nebula Device 3

CoreGraphics::DisplayEvent Class Reference

#include <displayevent.h>


Detailed Description

Display events are sent by the display device to registered display event handlers.

(C) 2007 Radon Labs GmbH

Public Types

enum  Code
 event codes

Public Member Functions

 DisplayEvent ()
 default constructor
 DisplayEvent (Code c)
 constructor with event code
 DisplayEvent (Code c, const Math::float2 &absPos, const Math::float2 &normPos)
 constructor with event code and mouse pos
 DisplayEvent (Code c, Input::Key::Code k)
 constructor with key code
 DisplayEvent (Code c, Input::Char chr)
 constructor with character
 DisplayEvent (Code c, Input::MouseButton::Code b, const Math::float2 &absPos, const Math::float2 &normPos)
 constructor with mouse button and mouse pos
Code GetEventCode () const
 get event code
const Math::float2GetAbsMousePos () const
 get absolute mouse pos (in pixels)
const Math::float2GetNormMousePos () const
 get normalized mouse pos (from 0.0 to 1.0)
Input::Key::Code GetKey () const
 get key code
Input::Char GetChar () const
 get character code
Input::MouseButton::Code GetMouseButton () const
 get mouse button code