CrystalSpace

Public API Reference

csMouseEventHelper Class Reference
[Event handling]

Helper class to conveniently deal with mouse events. More...

#include <csutil/event.h>

List of all members.

Static Public Member Functions

static int GetAxis (const iEvent *event, uint axis)
 retrieve any axis (basis 0) value
static uint GetButton (const iEvent *event)
 retrieve button code
static uint32 GetButtonMask (const iEvent *event)
 Retrieve current button mask.
static bool GetButtonState (const iEvent *event)
 retrieve button state (pressed/released)
static bool GetEventData (const iEvent *event, csMouseEventData &data)
 Retrieve event data.
static csMouseEventType GetEventType (const iEvent *event)
 Retrieve the event type (key up or down.).
static uint32 GetModifiers (const iEvent *event)
 Retrieve modifiers bitmask.
static void GetModifiers (const iEvent *event, csKeyModifiers &modifiers)
 retrieve modifier flags
static uint GetNumAxes (const iEvent *event)
 retrieve number of axes
static uint GetNumber (const iEvent *event)
 retrieve mouse number (0, 1, ...)
static int GetX (const iEvent *event)
 retrieve X value of mouse #0
static int GetY (const iEvent *event)
 Retrieve Y value of mouse #0.
static csEventNewEvent (csRef< iEventNameRegistry > &reg, csTicks, csEventID name, csMouseEventType etype, int x, int y, uint32 AxesChanged, uint button, bool buttonstate, uint32 buttonMask, uint32 modifiers)
 Create a new mouse event.


Detailed Description

Helper class to conveniently deal with mouse events.

Definition at line 92 of file event.h.


Member Function Documentation

static int csMouseEventHelper::GetAxis ( const iEvent event,
uint  axis 
) [static]

retrieve any axis (basis 0) value

Referenced by GetX(), and GetY().

static uint csMouseEventHelper::GetButton ( const iEvent event  )  [static]

retrieve button code

static uint32 csMouseEventHelper::GetButtonMask ( const iEvent event  )  [static]

Retrieve current button mask.

static bool csMouseEventHelper::GetButtonState ( const iEvent event  )  [static]

retrieve button state (pressed/released)

static bool csMouseEventHelper::GetEventData ( const iEvent event,
csMouseEventData data 
) [static]

Retrieve event data.

static csMouseEventType csMouseEventHelper::GetEventType ( const iEvent event  )  [static]

Retrieve the event type (key up or down.).

static uint32 csMouseEventHelper::GetModifiers ( const iEvent event  )  [inline, static]

Retrieve modifiers bitmask.

Definition at line 136 of file event.h.

References csKeyEventHelper::GetModifiers(), and csKeyEventHelper::GetModifiersBits().

static void csMouseEventHelper::GetModifiers ( const iEvent event,
csKeyModifiers modifiers 
) [inline, static]

retrieve modifier flags

Definition at line 132 of file event.h.

References csKeyEventHelper::GetModifiers().

static uint csMouseEventHelper::GetNumAxes ( const iEvent event  )  [static]

retrieve number of axes

static uint csMouseEventHelper::GetNumber ( const iEvent event  )  [static]

retrieve mouse number (0, 1, ...)

static int csMouseEventHelper::GetX ( const iEvent event  )  [inline, static]

retrieve X value of mouse #0

Definition at line 116 of file event.h.

References GetAxis().

static int csMouseEventHelper::GetY ( const iEvent event  )  [inline, static]

Retrieve Y value of mouse #0.

Definition at line 119 of file event.h.

References GetAxis().

static csEvent* csMouseEventHelper::NewEvent ( csRef< iEventNameRegistry > &  reg,
csTicks  ,
csEventID  name,
csMouseEventType  etype,
int  x,
int  y,
uint32  AxesChanged,
uint  button,
bool  buttonstate,
uint32  buttonMask,
uint32  modifiers 
) [static]

Create a new mouse event.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.4.7