File: keymap.h

package info (click to toggle)
dosbox-x 2026.01.02%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,220 kB
  • sloc: cpp: 341,269; ansic: 165,494; sh: 1,463; makefile: 967; perl: 385; python: 106; asm: 57
file content (23 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* DOSBox-X keymap handling */
#ifndef __DOSBOX_X_KEYMAP
#define __DOSBOX_X_KEYMAP

/* these enumerations are meant to represent the host OS keyboard map,
 * as well as the keymap used by the mapper interface */
enum {
    // #0
    DKM_US=0,           // US keyboard layout
    DKM_DEU,            // German keyboard layout (one concerned user, in issue tracker)
    DKM_JPN_PC98,       // Japanese PC98 keyboard layout (for PC-98 emulation)
    DKM_JPN,            // Japanese keyboard layout (one concerned user, in issue tracker, with suggestion for mapping Ro)
    DKM_NON_US,         // A non-US keyboard
    DKM_MAX
};

extern unsigned int     mapper_keyboard_layout;
extern unsigned int     host_keyboard_layout;

const char *DKM_to_string(const unsigned int dkm);
const char *DKM_to_descriptive_string(const unsigned int dkm);

#endif //__DOSBOX_X_KEYMAP