Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Input::KeyEvent Struct Referencefinal

#include <InputAggregatorInterface.h>

+ Inheritance diagram for Divide::Input::KeyEvent:

Public Member Functions

 KeyEvent (DisplayWindow *sourceWindow, U8 deviceIndex) noexcept
 
- Public Member Functions inherited from Divide::Input::InputEvent
 InputEvent (DisplayWindow *sourceWindow, U8 deviceIndex) noexcept
 

Public Attributes

KeyCode _key { KeyCode::KC_UNASSIGNED }
 
bool _pressed { false }
 
bool _isRepeat { false }
 
U16 _modMask {0u}
 
SDL_Scancode scancode {}
 
SDL_Keycode sym {}
 
- Public Attributes inherited from Divide::Input::InputEvent
U8 _deviceIndex = 0
 
DisplayWindow_sourceWindow = nullptr
 

Detailed Description

Definition at line 131 of file InputAggregatorInterface.h.

Constructor & Destructor Documentation

◆ KeyEvent()

Divide::Input::KeyEvent::KeyEvent ( DisplayWindow sourceWindow,
U8  deviceIndex 
)
explicitnoexcept

Definition at line 83 of file InputAggregatorInterface.cpp.

Member Data Documentation

◆ _isRepeat

bool Divide::Input::KeyEvent::_isRepeat { false }

Definition at line 137 of file InputAggregatorInterface.h.

◆ _key

KeyCode Divide::Input::KeyEvent::_key { KeyCode::KC_UNASSIGNED }

Definition at line 135 of file InputAggregatorInterface.h.

◆ _modMask

U16 Divide::Input::KeyEvent::_modMask {0u}

Definition at line 138 of file InputAggregatorInterface.h.

◆ _pressed

bool Divide::Input::KeyEvent::_pressed { false }

Definition at line 136 of file InputAggregatorInterface.h.

◆ scancode

SDL_Scancode Divide::Input::KeyEvent::scancode {}

SDL physical key code - see ::SDL_Scancode for details

Definition at line 140 of file InputAggregatorInterface.h.

◆ sym

SDL_Keycode Divide::Input::KeyEvent::sym {}

SDL virtual key code - see ::SDL_Keycode for details

Definition at line 141 of file InputAggregatorInterface.h.


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