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::String path
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 151 of file events.h.


Constructor & Destructor Documentation

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

Definition at line 201 of file 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 199 of file 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 167 of file events.h.

True if this is a key down repeat event.

Only valid for EVENT_KEYDOWN events.

Definition at line 161 of file 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 175 of file events.h.

Definition at line 184 of file events.h.

Mouse movement since the last mouse movement event.

This field is ResidualVM specific

Definition at line 191 of file events.h.

The type of the event.

Definition at line 154 of file events.h.


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


Generated on Sat Mar 28 2020 05:02:22 for ResidualVM by doxygen 1.7.1
curved edge   curved edge