openMSX
Classes | Namespaces | Macros | Functions
Keys.cc File Reference
#include "Keys.hh"
#include "StringOp.hh"
#include "cstd.hh"
#include "ranges.hh"
#include <array>
Include dependency graph for Keys.cc:

Go to the source code of this file.

Classes

struct  openmsx::Keys::P
 
struct  openmsx::Keys::CmpKeys
 

Namespaces

 openmsx
 This file implemented 3 utility functions:
 
 openmsx::Keys
 

Macros

#define KEYS_CONSTEXPR   constexpr
 
#define KEYS_SORT   cstd::sort
 

Functions

KeyCode openmsx::Keys::getCode (std::string_view name)
 Translate key name to key code. More...
 
std::pair< KeyCode, KeyCode > openmsx::Keys::getCodes (SDL_Keycode keycode, Uint16 mod=KMOD_NONE, SDL_Scancode scancode=SDL_SCANCODE_UNKNOWN, bool release=false)
 Translate SDL_Keycode/SDL_Scancode into openMSX key/scan Keycode's. More...
 
string openmsx::Keys::getName (KeyCode keyCode)
 Translate key code to key name. More...
 

Macro Definition Documentation

◆ KEYS_CONSTEXPR

#define KEYS_CONSTEXPR   constexpr

Definition at line 49 of file Keys.cc.

◆ KEYS_SORT

#define KEYS_SORT   cstd::sort

Definition at line 50 of file Keys.cc.