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

Event handling types. More...

#include <Event.hpp>

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 , USER_EVENT
}

Public Attributes

uint32 type
 The event type.
uint32 timestamp
 The recorded time at the moment of the event.
union { 
   QuitEvent   quit 
   WindowEvent   window 
   KeyboardEvent   key 
   MouseMotionEvent   motion 
   MouseButtonEvent   mouse 
   MouseWheelEvent   wheel 
   JoystickButtonEvent   jbutton 
   JoystickAxisEvent   jaxis 
   JoystickHatEvent   jhat 
   JoystickDeviceEvent   jdevice 
   GameControllerAxisEvent   caxis 
   GameControllerButtonEvent   cbutton 
   GameControllerDeviceEvent   cdevice 
   FingerTouchEvent   touch 
   GestureEvent   gesture 
   DragDropEvent   drop 
   TextInputEvent   text 
   TextEditingEvent   edit 
   UserEvent   user 
}; 

Detailed Description

Event handling types.

Definition at line 456 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 458 of file Event.hpp.

Member Data Documentation

◆ caxis

GameControllerAxisEvent nom::Event::caxis

Definition at line 535 of file Event.hpp.

◆ cbutton

GameControllerButtonEvent nom::Event::cbutton

Definition at line 536 of file Event.hpp.

◆ cdevice

GameControllerDeviceEvent nom::Event::cdevice

Definition at line 537 of file Event.hpp.

◆ drop

DragDropEvent nom::Event::drop

Definition at line 540 of file Event.hpp.

◆ edit

TextEditingEvent nom::Event::edit

Definition at line 542 of file Event.hpp.

◆ gesture

GestureEvent nom::Event::gesture

Definition at line 539 of file Event.hpp.

◆ jaxis

JoystickAxisEvent nom::Event::jaxis

Definition at line 532 of file Event.hpp.

◆ jbutton

JoystickButtonEvent nom::Event::jbutton

Definition at line 531 of file Event.hpp.

◆ jdevice

JoystickDeviceEvent nom::Event::jdevice

Definition at line 534 of file Event.hpp.

◆ jhat

JoystickHatEvent nom::Event::jhat

Definition at line 533 of file Event.hpp.

◆ key

KeyboardEvent nom::Event::key

Definition at line 527 of file Event.hpp.

◆ motion

MouseMotionEvent nom::Event::motion

Definition at line 528 of file Event.hpp.

◆ mouse

MouseButtonEvent nom::Event::mouse

Definition at line 529 of file Event.hpp.

◆ quit

QuitEvent nom::Event::quit

Definition at line 525 of file Event.hpp.

◆ text

TextInputEvent nom::Event::text

Definition at line 541 of file Event.hpp.

◆ timestamp

uint32 nom::Event::timestamp

The recorded time at the moment of the event.

Definition at line 521 of file Event.hpp.

◆ touch

FingerTouchEvent nom::Event::touch

Definition at line 538 of file Event.hpp.

◆ type

uint32 nom::Event::type

The event type.

See also
nom::Event::EventType

Definition at line 518 of file Event.hpp.

◆ user

UserEvent nom::Event::user

Definition at line 543 of file Event.hpp.

◆ wheel

MouseWheelEvent nom::Event::wheel

Definition at line 530 of file Event.hpp.

◆ window

WindowEvent nom::Event::window

Definition at line 526 of file Event.hpp.


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