openMSX
Classes | Namespaces | Functions
Keys.cc File Reference
#include "Keys.hh"
#include "StringOp.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

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

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...
 
std::string openmsx::Keys::getName (KeyCode keyCode)
 Translate key code to key name. More...