openMSX
Public Member Functions | Static Public Member Functions | List of all members
openmsx::KeyDownEvent Class Referencefinal

#include <Event.hh>

Inheritance diagram for openmsx::KeyDownEvent:
Inheritance graph
[legend]
Collaboration diagram for openmsx::KeyDownEvent:
Collaboration graph
[legend]

Public Member Functions

 KeyDownEvent (const SDL_Event &e)
 
- Public Member Functions inherited from openmsx::KeyEvent
bool getRepeat () const
 
SDL_Keycode getKeyCode () const
 
SDL_Scancode getScanCode () const
 
uint16_t getModifiers () const
 
uint32_t getUnicode () const
 
SDLKey getKey () const
 
- Public Member Functions inherited from openmsx::SdlEvent
 SdlEvent (const SDL_Event &e)
 
const SDL_Event & getSdlEvent () const
 
const SDL_CommonEvent & getCommonSdlEvent () const
 

Static Public Member Functions

static KeyDownEvent create (SDL_Keycode code, SDL_Keymod mod=KMOD_NONE)
 
static KeyDownEvent create (uint32_t timestamp, unsigned unicode)
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::KeyEvent
 KeyEvent (const SDL_Event &e)
 
- Protected Attributes inherited from openmsx::SdlEvent
SDL_Event evt
 

Detailed Description

Definition at line 76 of file Event.hh.

Constructor & Destructor Documentation

◆ KeyDownEvent()

openmsx::KeyDownEvent::KeyDownEvent ( const SDL_Event &  e)
inlineexplicit

Definition at line 79 of file Event.hh.

Referenced by create().

Member Function Documentation

◆ create() [1/2]

static KeyDownEvent openmsx::KeyDownEvent::create ( SDL_Keycode  code,
SDL_Keymod  mod = KMOD_NONE 
)
inlinestatic

Definition at line 81 of file Event.hh.

References Math::e, openmsx::SdlEvent::evt, and KeyDownEvent().

◆ create() [2/2]

static KeyDownEvent openmsx::KeyDownEvent::create ( uint32_t  timestamp,
unsigned  unicode 
)
inlinestatic

Definition at line 91 of file Event.hh.

References Math::e, openmsx::SdlEvent::evt, and KeyDownEvent().


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