Symphony Of Empires
Eng3D::Event::Key Struct Reference

#include <event.hpp>

Public Types

enum class  Type : unsigned char {
  NONE , A , B , C ,
  D , E , F , G ,
  H , I , J , K ,
  L , M , N , O ,
  P , Q , R , S ,
  T , U , V , W ,
  X , Y , Z , NUM_0 ,
  NUM_1 , NUM_2 , NUM_3 , NUM_4 ,
  NUM_5 , NUM_6 , NUM_7 , NUM_8 ,
  NUM_9 , F1 , F2 , F3 ,
  F4 , F5 , F6 , F7 ,
  F8 , F9 , F10 , F11 ,
  F12 , UP , DOWN , LEFT ,
  RIGHT , SPACE , BACKSPACE , ESC ,
  TILDE
}
 

Public Member Functions

Eng3D::Event::Key::Type from_sdl (int sdl)
 

Public Attributes

Eng3D::Event::Key::Type type = Eng3D::Event::Key::Type::NONE
 
bool hold
 Whetever the key is being held. More...
 

Detailed Description

Definition at line 31 of file event.hpp.

Member Enumeration Documentation

◆ Type

enum Eng3D::Event::Key::Type : unsigned char
strong
Enumerator
NONE 
Todo:
What usecase this even has?
NUM_0 
NUM_1 
NUM_2 
NUM_3 
NUM_4 
NUM_5 
NUM_6 
NUM_7 
NUM_8 
NUM_9 
F1 
F2 
F3 
F4 
F5 
F6 
F7 
F8 
F9 
F10 
F11 
F12 
UP 
DOWN 
LEFT 
RIGHT 
SPACE 
BACKSPACE 
ESC 
TILDE 

Definition at line 32 of file event.hpp.

Member Function Documentation

◆ from_sdl()

Eng3D::Event::Key::Type Eng3D::Event::Key::from_sdl ( int  sdl)

Definition at line 32 of file event.cpp.

Member Data Documentation

◆ hold

bool Eng3D::Event::Key::hold

Whetever the key is being held.

Definition at line 50 of file event.hpp.

◆ type

Definition at line 48 of file event.hpp.


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