author  Holmes Futrell <hfutrell@umail.ucsb.edu> 
Thu, 01 Jan 2009 23:49:28 +0000  
changeset 2950  04c9f1e4c496 
parent 2859  99210400e8b9 
child 3407  d3baf5ac4e37 
permissions  rwrr 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

1 
/* 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

2 
SDL  Simple DirectMedia Layer 
2859  3 
Copyright (C) 19972009 Sam Lantinga 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

4 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

5 
This library is free software; you can redistribute it and/or 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

6 
modify it under the terms of the GNU Lesser General Public 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

7 
License as published by the Free Software Foundation; either 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

8 
version 2.1 of the License, or (at your option) any later version. 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

9 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

10 
This library is distributed in the hope that it will be useful, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

11 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

12 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

13 
Lesser General Public License for more details. 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

14 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

15 
You should have received a copy of the GNU Lesser General Public 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

16 
License along with this library; if not, write to the Free Software 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

17 
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 021101301 USA 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

18 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

19 
Sam Lantinga 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

20 
slouken@libsdl.org 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

21 
*/ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

22 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

23 
/** 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

24 
* \file SDL_scancode.h 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

25 
*/ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

26 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

27 
#ifndef _SDL_scancode_h 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

28 
#define _SDL_scancode_h 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

29 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

30 
#include "SDL_stdinc.h" 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

31 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

32 
/** 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

33 
* \enum SDL_scancode 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

34 
* 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

35 
* \brief The SDL keyboard scancode representation. 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

36 
* 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

37 
* Values of this type are used to represent keyboard keys, among other places 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

38 
* in the \link SDL_keysym::scancode key.keysym.scancode \endlink field of the 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

39 
* SDL_Event structure. 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

40 
* 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

41 
* The values in this enumeration are based on the USB usage page standard: 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

42 
* http://www.usb.org/developers/devclass_docs/Hut1_12.pdf 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

43 
*/ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

44 
typedef enum 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

45 
{ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

46 
SDL_SCANCODE_UNKNOWN = 0, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

47 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

48 
/* These values are from usage page 0x07 (USB keyboard page) */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

49 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

50 
SDL_SCANCODE_A = 4, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

51 
SDL_SCANCODE_B = 5, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

52 
SDL_SCANCODE_C = 6, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

53 
SDL_SCANCODE_D = 7, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

54 
SDL_SCANCODE_E = 8, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

55 
SDL_SCANCODE_F = 9, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

56 
SDL_SCANCODE_G = 10, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

57 
SDL_SCANCODE_H = 11, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

58 
SDL_SCANCODE_I = 12, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

59 
SDL_SCANCODE_J = 13, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

60 
SDL_SCANCODE_K = 14, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

61 
SDL_SCANCODE_L = 15, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

62 
SDL_SCANCODE_M = 16, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

63 
SDL_SCANCODE_N = 17, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

64 
SDL_SCANCODE_O = 18, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

65 
SDL_SCANCODE_P = 19, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

66 
SDL_SCANCODE_Q = 20, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

67 
SDL_SCANCODE_R = 21, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

68 
SDL_SCANCODE_S = 22, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

69 
SDL_SCANCODE_T = 23, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

70 
SDL_SCANCODE_U = 24, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

71 
SDL_SCANCODE_V = 25, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

72 
SDL_SCANCODE_W = 26, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

73 
SDL_SCANCODE_X = 27, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

74 
SDL_SCANCODE_Y = 28, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

75 
SDL_SCANCODE_Z = 29, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

76 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

77 
SDL_SCANCODE_1 = 30, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

78 
SDL_SCANCODE_2 = 31, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

79 
SDL_SCANCODE_3 = 32, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

80 
SDL_SCANCODE_4 = 33, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

81 
SDL_SCANCODE_5 = 34, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

82 
SDL_SCANCODE_6 = 35, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

83 
SDL_SCANCODE_7 = 36, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

84 
SDL_SCANCODE_8 = 37, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

85 
SDL_SCANCODE_9 = 38, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

86 
SDL_SCANCODE_0 = 39, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

87 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

88 
SDL_SCANCODE_RETURN = 40, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

89 
SDL_SCANCODE_ESCAPE = 41, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

90 
SDL_SCANCODE_BACKSPACE = 42, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

91 
SDL_SCANCODE_TAB = 43, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

92 
SDL_SCANCODE_SPACE = 44, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

93 

2305
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

94 
SDL_SCANCODE_MINUS = 45, 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

95 
SDL_SCANCODE_EQUALS = 46, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

96 
SDL_SCANCODE_LEFTBRACKET = 47, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

97 
SDL_SCANCODE_RIGHTBRACKET = 48, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

98 
SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return key on ISO keyboards and at the right end of the QWERTY row on ANSI keyboards. Produces REVERSE SOLIDUS (backslash) and VERTICAL LINE in a US layout, REVERSE SOLIDUS and VERTICAL LINE in a UK Mac layout, NUMBER SIGN and TILDE in a UK Windows layout, DOLLAR SIGN and POUND SIGN in a Swiss German layout, NUMBER SIGN and APOSTROPHE in a German layout, GRAVE ACCENT and POUND SIGN in a French Mac layout, and ASTERISK and MICRO SIGN in a French Windows layout. */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

99 
SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code instead of 49 for the same key, but all OSes I've seen treat the two codes identically. So, as an implementor, unless your keyboard generates both of those codes and your OS treats them differently, you should generate SDL_SCANCODE_BACKSLASH instead of this code. As a user, you should not rely on this code because SDL will never generate it with most (all?) keyboards. */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

100 
SDL_SCANCODE_SEMICOLON = 51, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

101 
SDL_SCANCODE_APOSTROPHE = 52, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

102 
SDL_SCANCODE_GRAVE = 53, /**< Located in the top left corner (on both ANSI and ISO keyboards). Produces GRAVE ACCENT and TILDE in a US Windows layout and in US and UK Mac layouts on ANSI keyboards, GRAVE ACCENT and NOT SIGN in a UK Windows layout, SECTION SIGN and PLUSMINUS SIGN in US and UK Mac layouts on ISO keyboards, SECTION SIGN and DEGREE SIGN in a Swiss German layout (Mac: only on ISO keyboards), CIRCUMFLEX ACCENT and DEGREE SIGN in a German layout (Mac: only on ISO keyboards), SUPERSCRIPT TWO and TILDE in a French Windows layout, COMMERCIAL AT and NUMBER SIGN in a French Mac layout on ISO keyboards, and LESSTHAN SIGN and GREATERTHAN SIGN in a Swiss German, German, or French Mac layout on ANSI keyboards. */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

103 
SDL_SCANCODE_COMMA = 54, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

104 
SDL_SCANCODE_PERIOD = 55, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

105 
SDL_SCANCODE_SLASH = 56, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

106 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

107 
SDL_SCANCODE_CAPSLOCK = 57, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

108 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

109 
SDL_SCANCODE_F1 = 58, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

110 
SDL_SCANCODE_F2 = 59, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

111 
SDL_SCANCODE_F3 = 60, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

112 
SDL_SCANCODE_F4 = 61, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

113 
SDL_SCANCODE_F5 = 62, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

114 
SDL_SCANCODE_F6 = 63, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

115 
SDL_SCANCODE_F7 = 64, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

116 
SDL_SCANCODE_F8 = 65, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

117 
SDL_SCANCODE_F9 = 66, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

118 
SDL_SCANCODE_F10 = 67, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

119 
SDL_SCANCODE_F11 = 68, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

120 
SDL_SCANCODE_F12 = 69, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

121 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

122 
SDL_SCANCODE_PRINTSCREEN = 70, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

123 
SDL_SCANCODE_SCROLLLOCK = 71, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

124 
SDL_SCANCODE_PAUSE = 72, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

125 
SDL_SCANCODE_INSERT = 73, /**< insert on PC, help on some Mac keyboards (but does send code 73, not 117) */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

126 
SDL_SCANCODE_HOME = 74, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

127 
SDL_SCANCODE_PAGEUP = 75, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

128 
SDL_SCANCODE_DELETE = 76, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

129 
SDL_SCANCODE_END = 77, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

130 
SDL_SCANCODE_PAGEDOWN = 78, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

131 
SDL_SCANCODE_RIGHT = 79, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

132 
SDL_SCANCODE_LEFT = 80, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

133 
SDL_SCANCODE_DOWN = 81, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

134 
SDL_SCANCODE_UP = 82, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

135 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

136 
SDL_SCANCODE_NUMLOCKCLEAR = 83, /**< num lock on PC, clear on Mac keyboards */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

137 
SDL_SCANCODE_KP_DIVIDE = 84, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

138 
SDL_SCANCODE_KP_MULTIPLY = 85, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

139 
SDL_SCANCODE_KP_MINUS = 86, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

140 
SDL_SCANCODE_KP_PLUS = 87, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

141 
SDL_SCANCODE_KP_ENTER = 88, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

142 
SDL_SCANCODE_KP_1 = 89, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

143 
SDL_SCANCODE_KP_2 = 90, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

144 
SDL_SCANCODE_KP_3 = 91, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

145 
SDL_SCANCODE_KP_4 = 92, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

146 
SDL_SCANCODE_KP_5 = 93, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

147 
SDL_SCANCODE_KP_6 = 94, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

148 
SDL_SCANCODE_KP_7 = 95, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

149 
SDL_SCANCODE_KP_8 = 96, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

150 
SDL_SCANCODE_KP_9 = 97, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

151 
SDL_SCANCODE_KP_0 = 98, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

152 
SDL_SCANCODE_KP_PERIOD = 99, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

153 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

154 
SDL_SCANCODE_NONUSBACKSLASH = 100, /**< This is the additional key that ISO keyboards have over ANSI ones, located between left shift and Y. Produces GRAVE ACCENT and TILDE in a US or UK Mac layout, REVERSE SOLIDUS (backslash) and VERTICAL LINE in a US or UK Windows layout, and LESSTHAN SIGN and GREATERTHAN SIGN in a Swiss German, German, or French layout. */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

155 
SDL_SCANCODE_APPLICATION = 101, /**< windows contextual menu, compose */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

156 
SDL_SCANCODE_POWER = 102, /**< The USB document says this is a status flag, not a physical key  but some Mac keyboards do have a power key. */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

157 
SDL_SCANCODE_KP_EQUALS = 103, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

158 
SDL_SCANCODE_F13 = 104, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

159 
SDL_SCANCODE_F14 = 105, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

160 
SDL_SCANCODE_F15 = 106, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

161 
SDL_SCANCODE_F16 = 107, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

162 
SDL_SCANCODE_F17 = 108, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

163 
SDL_SCANCODE_F18 = 109, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

164 
SDL_SCANCODE_F19 = 110, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

165 
SDL_SCANCODE_F20 = 111, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

166 
SDL_SCANCODE_F21 = 112, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

167 
SDL_SCANCODE_F22 = 113, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

168 
SDL_SCANCODE_F23 = 114, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

169 
SDL_SCANCODE_F24 = 115, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

170 
SDL_SCANCODE_EXECUTE = 116, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

171 
SDL_SCANCODE_HELP = 117, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

172 
SDL_SCANCODE_MENU = 118, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

173 
SDL_SCANCODE_SELECT = 119, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

174 
SDL_SCANCODE_STOP = 120, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

175 
SDL_SCANCODE_AGAIN = 121, /*!< redo */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

176 
SDL_SCANCODE_UNDO = 122, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

177 
SDL_SCANCODE_CUT = 123, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

178 
SDL_SCANCODE_COPY = 124, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

179 
SDL_SCANCODE_PASTE = 125, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

180 
SDL_SCANCODE_FIND = 126, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

181 
SDL_SCANCODE_MUTE = 127, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

182 
SDL_SCANCODE_VOLUMEUP = 128, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

183 
SDL_SCANCODE_VOLUMEDOWN = 129, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

184 
/* not sure whether there's a reason to enable these */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

185 
/* SDL_SCANCODE_LOCKINGCAPSLOCK = 130, */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

186 
/* SDL_SCANCODE_LOCKINGNUMLOCK = 131, */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

187 
/* SDL_SCANCODE_LOCKINGSCROLLLOCK = 132, */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

188 
SDL_SCANCODE_KP_COMMA = 133, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

189 
SDL_SCANCODE_KP_EQUALSAS400 = 134, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

190 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

191 
SDL_SCANCODE_INTERNATIONAL1 = 135, /**< used on Asian keyboards, see footnotes in USB doc */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

192 
SDL_SCANCODE_INTERNATIONAL2 = 136, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

193 
SDL_SCANCODE_INTERNATIONAL3 = 137, /**< Yen */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

194 
SDL_SCANCODE_INTERNATIONAL4 = 138, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

195 
SDL_SCANCODE_INTERNATIONAL5 = 139, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

196 
SDL_SCANCODE_INTERNATIONAL6 = 140, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

197 
SDL_SCANCODE_INTERNATIONAL7 = 141, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

198 
SDL_SCANCODE_INTERNATIONAL8 = 142, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

199 
SDL_SCANCODE_INTERNATIONAL9 = 143, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

200 
SDL_SCANCODE_LANG1 = 144, /**< Hangul/English toggle */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

201 
SDL_SCANCODE_LANG2 = 145, /**< Hanja conversion */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

202 
SDL_SCANCODE_LANG3 = 146, /**< Katakana */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

203 
SDL_SCANCODE_LANG4 = 147, /**< Hiragana */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

204 
SDL_SCANCODE_LANG5 = 148, /**< Zenkaku/Hankaku */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

205 
SDL_SCANCODE_LANG6 = 149, /**< reserved */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

206 
SDL_SCANCODE_LANG7 = 150, /**< reserved */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

207 
SDL_SCANCODE_LANG8 = 151, /**< reserved */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

208 
SDL_SCANCODE_LANG9 = 152, /**< reserved */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

209 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

210 
SDL_SCANCODE_ALTERASE = 153, /**< EraseEaze */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

211 
SDL_SCANCODE_SYSREQ = 154, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

212 
SDL_SCANCODE_CANCEL = 155, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

213 
SDL_SCANCODE_CLEAR = 156, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

214 
SDL_SCANCODE_PRIOR = 157, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

215 
SDL_SCANCODE_RETURN2 = 158, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

216 
SDL_SCANCODE_SEPARATOR = 159, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

217 
SDL_SCANCODE_OUT = 160, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

218 
SDL_SCANCODE_OPER = 161, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

219 
SDL_SCANCODE_CLEARAGAIN = 162, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

220 
SDL_SCANCODE_CRSEL = 163, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

221 
SDL_SCANCODE_EXSEL = 164, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

222 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

223 
SDL_SCANCODE_KP_00 = 176, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

224 
SDL_SCANCODE_KP_000 = 177, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

225 
SDL_SCANCODE_THOUSANDSSEPARATOR = 178, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

226 
SDL_SCANCODE_DECIMALSEPARATOR = 179, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

227 
SDL_SCANCODE_CURRENCYUNIT = 180, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

228 
SDL_SCANCODE_CURRENCYSUBUNIT = 181, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

229 
SDL_SCANCODE_KP_LEFTPAREN = 182, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

230 
SDL_SCANCODE_KP_RIGHTPAREN = 183, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

231 
SDL_SCANCODE_KP_LEFTBRACE = 184, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

232 
SDL_SCANCODE_KP_RIGHTBRACE = 185, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

233 
SDL_SCANCODE_KP_TAB = 186, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

234 
SDL_SCANCODE_KP_BACKSPACE = 187, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

235 
SDL_SCANCODE_KP_A = 188, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

236 
SDL_SCANCODE_KP_B = 189, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

237 
SDL_SCANCODE_KP_C = 190, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

238 
SDL_SCANCODE_KP_D = 191, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

239 
SDL_SCANCODE_KP_E = 192, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

240 
SDL_SCANCODE_KP_F = 193, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

241 
SDL_SCANCODE_KP_XOR = 194, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

242 
SDL_SCANCODE_KP_POWER = 195, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

243 
SDL_SCANCODE_KP_PERCENT = 196, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

244 
SDL_SCANCODE_KP_LESS = 197, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

245 
SDL_SCANCODE_KP_GREATER = 198, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

246 
SDL_SCANCODE_KP_AMPERSAND = 199, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

247 
SDL_SCANCODE_KP_DBLAMPERSAND = 200, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

248 
SDL_SCANCODE_KP_VERTICALBAR = 201, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

249 
SDL_SCANCODE_KP_DBLVERTICALBAR = 202, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

250 
SDL_SCANCODE_KP_COLON = 203, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

251 
SDL_SCANCODE_KP_HASH = 204, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

252 
SDL_SCANCODE_KP_SPACE = 205, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

253 
SDL_SCANCODE_KP_AT = 206, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

254 
SDL_SCANCODE_KP_EXCLAM = 207, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

255 
SDL_SCANCODE_KP_MEMSTORE = 208, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

256 
SDL_SCANCODE_KP_MEMRECALL = 209, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

257 
SDL_SCANCODE_KP_MEMCLEAR = 210, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

258 
SDL_SCANCODE_KP_MEMADD = 211, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

259 
SDL_SCANCODE_KP_MEMSUBTRACT = 212, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

260 
SDL_SCANCODE_KP_MEMMULTIPLY = 213, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

261 
SDL_SCANCODE_KP_MEMDIVIDE = 214, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

262 
SDL_SCANCODE_KP_PLUSMINUS = 215, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

263 
SDL_SCANCODE_KP_CLEAR = 216, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

264 
SDL_SCANCODE_KP_CLEARENTRY = 217, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

265 
SDL_SCANCODE_KP_BINARY = 218, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

266 
SDL_SCANCODE_KP_OCTAL = 219, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

267 
SDL_SCANCODE_KP_DECIMAL = 220, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

268 
SDL_SCANCODE_KP_HEXADECIMAL = 221, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

269 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

270 
SDL_SCANCODE_LCTRL = 224, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

271 
SDL_SCANCODE_LSHIFT = 225, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

272 
SDL_SCANCODE_LALT = 226, /**< alt, option */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

273 
SDL_SCANCODE_LGUI = 227, /**< windows, command (apple), meta */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

274 
SDL_SCANCODE_RCTRL = 228, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

275 
SDL_SCANCODE_RSHIFT = 229, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

276 
SDL_SCANCODE_RALT = 230, /**< alt gr, option */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

277 
SDL_SCANCODE_RGUI = 231, /**< windows, command (apple), meta */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

278 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

279 
SDL_SCANCODE_MODE = 257, /* I'm not sure if this is really not covered by any of the above, but since there's a special KMOD_MODE for it I'm adding it here */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

280 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

281 
/* These values are mapped from usage page 0x0C (USB consumer page) */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

282 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

283 
SDL_SCANCODE_AUDIONEXT = 258, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

284 
SDL_SCANCODE_AUDIOPREV = 259, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

285 
SDL_SCANCODE_AUDIOSTOP = 260, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

286 
SDL_SCANCODE_AUDIOPLAY = 261, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

287 
SDL_SCANCODE_AUDIOMUTE = 262, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

288 
SDL_SCANCODE_MEDIASELECT = 263, 
2305
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

289 
SDL_SCANCODE_WWW = 264, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

290 
SDL_SCANCODE_MAIL = 265, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

291 
SDL_SCANCODE_CALCULATOR = 266, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

292 
SDL_SCANCODE_COMPUTER = 267, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

293 
SDL_SCANCODE_AC_SEARCH = 268, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

294 
SDL_SCANCODE_AC_HOME = 269, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

295 
SDL_SCANCODE_AC_BACK = 270, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

296 
SDL_SCANCODE_AC_FORWARD = 271, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

297 
SDL_SCANCODE_AC_STOP = 272, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

298 
SDL_SCANCODE_AC_REFRESH = 273, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

299 
SDL_SCANCODE_AC_BOOKMARKS = 274, 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

300 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

301 
/* These are values that Christian Walther added (for mac keyboard?) */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

302 

2305
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

303 
SDL_SCANCODE_BRIGHTNESSDOWN = 275, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

304 
SDL_SCANCODE_BRIGHTNESSUP = 276, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

305 
SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display switch, video mode switch */ 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

306 
SDL_SCANCODE_KBDILLUMTOGGLE = 278, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

307 
SDL_SCANCODE_KBDILLUMDOWN = 279, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

308 
SDL_SCANCODE_KBDILLUMUP = 280, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

309 
SDL_SCANCODE_EJECT = 281, 
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

310 
SDL_SCANCODE_SLEEP = 282, 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

311 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

312 
/* Add any other keys here */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

313 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

314 
SDL_NUM_SCANCODES = 512 /**< (not a key, just marks the number of scancodes for array bounds) */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

315 
} SDL_scancode; 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

316 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

317 
#endif /* _SDL_scancode_h */ 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

318 

d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

319 
/* vi: set ts=4 sw=4 expandtab: */ 