nomlib
Loading...
Searching...
No Matches
nom::Event Struct Reference

Event handling types. More...

#include <Event.hpp>

Classes

union  [union].__unnamed0__

Public Types

enum  EventType : uint32 {
  FIRST_EVENT = 0 , QUIT_EVENT , WINDOW_EVENT , SYSWMEVENT ,
  KEY_PRESS , KEY_RELEASE , MOUSE_MOTION , MOUSE_BUTTON_CLICK ,
  MOUSE_BUTTON_RELEASE , MOUSE_WHEEL , JOYSTICK_AXIS_MOTION , JOYSTICK_BALL_MOTION ,
  JOYSTICK_HAT_MOTION , JOYSTICK_BUTTON_PRESS , JOYSTICK_BUTTON_RELEASE , JOYSTICK_ADDED ,
  JOYSTICK_REMOVED , GAME_CONTROLLER_AXIS_MOTION , GAME_CONTROLLER_BUTTON_PRESS , GAME_CONTROLLER_BUTTON_RELEASE ,
  GAME_CONTROLLER_ADDED , GAME_CONTROLLER_REMOVED , GAME_CONTROLLER_REMAPPED , FINGER_MOTION ,
  FINGER_PRESS , FINGER_RELEASE , MULTI_FINGER_GESTURE , DROP_FILE ,
  TEXT_INPUT , TEXT_EDITING , RENDER_TARGETS_RESET , RENDER_DEVICE_RESET ,
  USER_EVENT
}

Public Attributes

uint32 type
 The event type.
uint32 timestamp
 The recorded time at the moment of the event.
union  

Detailed Description

Event handling types.

Definition at line 457 of file Event.hpp.

Member Enumeration Documentation

◆ EventType

enum nom::Event::EventType : uint32
Enumerator
JOYSTICK_ADDED 

The device index of the joystick connection event.

JOYSTICK_REMOVED 

The instance ID of the joystick removal event.

GAME_CONTROLLER_ADDED 

The device index of the game controller connection event.

GAME_CONTROLLER_REMOVED 

The instance ID of the game controller removal event.

GAME_CONTROLLER_REMAPPED 

The instance ID of the game controller remapping event.

Definition at line 459 of file Event.hpp.

Member Data Documentation

◆ timestamp

uint32 nom::Event::timestamp

The recorded time at the moment of the event.

Definition at line 520 of file Event.hpp.

◆ type

uint32 nom::Event::type

The event type.

See also
nom::Event::EventType

Definition at line 517 of file Event.hpp.


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