kodi
XBMC_keyboard.h
1 /*
2  * SDL - Simple DirectMedia Layer
3  * Copyright (C) 1997-2009 Sam Lantinga
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  * See LICENSES/README.md for more information.
7  *
8  * Sam Lantinga
9  * slouken@libsdl.org
10  */
11 
12 #pragma once
13 
14 /* Include file for SDL keyboard event handling */
15 
16 #include "XBMC_keysym.h"
17 
18 #include <stdint.h>
19 
22 
23 /* Keysym structure
24  - The scancode is hardware dependent, and should not be used by general
25  applications. If no hardware scancode is available, it will be 0.
26 
27  - The 'unicode' translated character is only available when character
28  translation is enabled by the XBMC_EnableUNICODE() API. If non-zero,
29  this is a UNICODE character corresponding to the keypress. If the
30  high 9 bits of the character are 0, then this maps to the equivalent
31  ASCII character:
32  char ch;
33  if ( (keysym.unicode & 0xFF80) == 0 ) {
34  ch = keysym.unicode & 0x7F;
35  } else {
36  An international character..
37  }
38  */
40 {
41  unsigned char scancode; /* hardware specific scancode */
42  XBMCKey sym; /* SDL virtual keysym */
43  XBMCMod mod; /* current key modifiers */
44  uint16_t unicode; /* translated character */
45 };
46 
47 /* This is the mask which refers to all hotkey bindings */
48 #define XBMC_ALL_HOTKEYS 0xFFFFFFFF
49 
Definition: XBMC_keyboard.h:39