ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::Event Struct Reference

Data structure for an event. More...

#include <events.h>

Inheritance diagram for Common::Event:
Collaboration diagram for Common::Event:

List of all members.

Public Member Functions

 Event ()

Public Attributes

EventType type
 The type of the event.
bool kbdRepeat
 True if this is a key down repeat event.
KeyState kbd
 Keyboard data; only valid for keyboard events (EVENT_KEYDOWN and EVENT_KEYUP).
Point mouse
 The mouse coordinates, in virtual screen coordinates.
Common::Point relMouse
 Mouse movement since the last mouse movement event.
JoystickState joystick
 Joystick data; only valid for joystick events (EVENT_JOYAXIS_MOTION, EVENT_JOYBUTTON_DOWN and EVENT_JOYBUTTON_UP).

Detailed Description

Data structure for an event.

A pointer to an instance of Event can be passed to pollEvent.

Definition at line 149 of file common/events.h.


Constructor & Destructor Documentation

Common::Event::Event (  )  [inline]

Definition at line 196 of file common/events.h.


Member Data Documentation

Joystick data; only valid for joystick events (EVENT_JOYAXIS_MOTION, EVENT_JOYBUTTON_DOWN and EVENT_JOYBUTTON_UP).

This field is ResidualVM specific

Definition at line 194 of file common/events.h.

Keyboard data; only valid for keyboard events (EVENT_KEYDOWN and EVENT_KEYUP).

For all other event types, content is undefined.

Definition at line 165 of file common/events.h.

True if this is a key down repeat event.

Only valid for EVENT_KEYDOWN events.

Definition at line 159 of file common/events.h.

The mouse coordinates, in virtual screen coordinates.

Only valid for mouse events. Virtual screen coordinates means: the coordinate system of the screen area as defined by the most recent call to initSize().

Definition at line 173 of file common/events.h.

Mouse movement since the last mouse movement event.

This field is ResidualVM specific

Definition at line 186 of file common/events.h.

The type of the event.

Definition at line 152 of file common/events.h.


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


Generated on Sat Mar 16 2019 05:05:32 for ResidualVM by doxygen 1.7.1
curved edge   curved edge