Skip to content

Commit 5e43da0

Browse files
committed
core: Add short names in unimap
1 parent 7a56998 commit 5e43da0

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

common/unimap.h

+61
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,65 @@ enum unimap_position_codes {
208208
UNIMAP_NO, // 0x80
209209
};
210210

211+
/*
212+
* Short names
213+
*/
214+
#define UNIMAP_LCTL UNIMAP_LCTRL
215+
#define UNIMAP_RCTL UNIMAP_RCTRL
216+
#define UNIMAP_LSFT UNIMAP_LSHIFT
217+
#define UNIMAP_RSFT UNIMAP_RSHIFT
218+
#define UNIMAP_ESC UNIMAP_ESCAPE
219+
#define UNIMAP_BSPC UNIMAP_BSPACE
220+
#define UNIMAP_ENT UNIMAP_ENTER
221+
#define UNIMAP_DEL UNIMAP_DELETE
222+
#define UNIMAP_INS UNIMAP_INSERT
223+
#define UNIMAP_CAPS UNIMAP_CAPSLOCK
224+
#define UNIMAP_CLCK UNIMAP_CAPSLOCK
225+
#define UNIMAP_RGHT UNIMAP_RIGHT
226+
#define UNIMAP_PGDN UNIMAP_PGDOWN
227+
#define UNIMAP_PSCR UNIMAP_PSCREEN
228+
#define UNIMAP_SLCK UNIMAP_SCROLLLOCK
229+
#define UNIMAP_PAUS UNIMAP_PAUSE
230+
#define UNIMAP_BRK UNIMAP_PAUSE
231+
#define UNIMAP_NLCK UNIMAP_NUMLOCK
232+
#define UNIMAP_SPC UNIMAP_SPACE
233+
#define UNIMAP_MINS UNIMAP_MINUS
234+
#define UNIMAP_EQL UNIMAP_EQUAL
235+
#define UNIMAP_GRV UNIMAP_GRAVE
236+
#define UNIMAP_RBRC UNIMAP_RBRACKET
237+
#define UNIMAP_LBRC UNIMAP_LBRACKET
238+
#define UNIMAP_COMM UNIMAP_COMMA
239+
#define UNIMAP_BSLS UNIMAP_BSLASH
240+
#define UNIMAP_SLSH UNIMAP_SLASH
241+
#define UNIMAP_SCLN UNIMAP_SCOLON
242+
#define UNIMAP_QUOT UNIMAP_QUOTE
243+
#define UNIMAP_APP UNIMAP_APPLICATION
244+
#define UNIMAP_NUHS UNIMAP_NONUS_HASH
245+
#define UNIMAP_NUBS UNIMAP_NONUS_BSLASH
246+
/* Japanese specific */
247+
#define UNIMAP_ZKHK UNIMAP_GRAVE
248+
/* Keypad */
249+
#define UNIMAP_P1 UNIMAP_KP_1
250+
#define UNIMAP_P2 UNIMAP_KP_2
251+
#define UNIMAP_P3 UNIMAP_KP_3
252+
#define UNIMAP_P4 UNIMAP_KP_4
253+
#define UNIMAP_P5 UNIMAP_KP_5
254+
#define UNIMAP_P6 UNIMAP_KP_6
255+
#define UNIMAP_P7 UNIMAP_KP_7
256+
#define UNIMAP_P8 UNIMAP_KP_8
257+
#define UNIMAP_P9 UNIMAP_KP_9
258+
#define UNIMAP_P0 UNIMAP_KP_0
259+
#define UNIMAP_PDOT UNIMAP_KP_DOT
260+
#define UNIMAP_PCMM UNIMAP_KP_COMMA
261+
#define UNIMAP_PSLS UNIMAP_KP_SLASH
262+
#define UNIMAP_PAST UNIMAP_KP_ASTERISK
263+
#define UNIMAP_PMNS UNIMAP_KP_MINUS
264+
#define UNIMAP_PPLS UNIMAP_KP_PLUS
265+
#define UNIMAP_PEQL UNIMAP_KP_EQUAL
266+
#define UNIMAP_PENT UNIMAP_KP_ENTER
267+
/* Consumer Page */
268+
#define UNIMAP_MUTE UNIMAP_VOLUME_MUTE
269+
#define UNIMAP_VOLU UNIMAP_VOLUME_UP
270+
#define UNIMAP_VOLD UNIMAP_VOLUME_DOWN
271+
211272
#endif

0 commit comments

Comments
 (0)