author  Ryan C. Gordon <icculus@icculus.org> 
Wed, 13 Jan 2010 07:00:20 +0000  
changeset 3648  a9d830c05998 
parent 3407  d3baf5ac4e37 
child 3697  f7b03b6838cb 
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 
/** 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

24 
* \file SDL_scancode.h 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

25 
* 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

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

28 

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

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

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

33 

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

34 
/** 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

35 
* \brief The SDL keyboard scancode representation. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

36 
* 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

37 
* Values of this type are used to represent keyboard keys, among other places 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

38 
* in the \link SDL_keysym::scancode key.keysym.scancode \endlink field of the 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

39 
* SDL_Event structure. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

40 
* 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

41 
* The values in this enumeration are based on the USB usage page standard: 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

42 
* http://www.usb.org/developers/devclass_docs/Hut1_12.pdf 
2303
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 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

48 
/** 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

49 
* \name Usage page 0x07 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

50 
* 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

51 
* These values are from usage page 0x07 (USB keyboard page). 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

52 
*/ 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

54 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

81 

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

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

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

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

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

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

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

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

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

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

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

92 

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

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

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

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

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

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

98 

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

99 
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

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

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

102 
SDL_SCANCODE_RIGHTBRACKET = 48, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

103 
SDL_SCANCODE_BACKSLASH = 49, /**< Located at the lower left of the return 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

104 
* key on ISO keyboards and at the right end 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

105 
* of the QWERTY row on ANSI keyboards. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

106 
* Produces REVERSE SOLIDUS (backslash) and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

107 
* VERTICAL LINE in a US layout, REVERSE 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

108 
* SOLIDUS and VERTICAL LINE in a UK Mac 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

109 
* layout, NUMBER SIGN and TILDE in a UK 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

110 
* Windows layout, DOLLAR SIGN and POUND SIGN 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

111 
* in a Swiss German layout, NUMBER SIGN and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

112 
* APOSTROPHE in a German layout, GRAVE 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

113 
* ACCENT and POUND SIGN in a French Mac 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

114 
* layout, and ASTERISK and MICRO SIGN in a 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

115 
* French Windows layout. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

116 
*/ 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

117 
SDL_SCANCODE_NONUSHASH = 50, /**< ISO USB keyboards actually use this code 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

118 
* instead of 49 for the same key, but all 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

119 
* OSes I've seen treat the two codes 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

120 
* identically. So, as an implementor, unless 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

121 
* your keyboard generates both of those 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

122 
* codes and your OS treats them differently, 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

123 
* you should generate SDL_SCANCODE_BACKSLASH 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

124 
* instead of this code. As a user, you 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

125 
* should not rely on this code because SDL 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

126 
* will never generate it with most (all?) 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

127 
* keyboards. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

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

130 
SDL_SCANCODE_APOSTROPHE = 52, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

131 
SDL_SCANCODE_GRAVE = 53, /**< Located in the top left corner (on both ANSI 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

132 
* and ISO keyboards). Produces GRAVE ACCENT and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

133 
* TILDE in a US Windows layout and in US and UK 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

134 
* Mac layouts on ANSI keyboards, GRAVE ACCENT 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

135 
* and NOT SIGN in a UK Windows layout, SECTION 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

136 
* SIGN and PLUSMINUS SIGN in US and UK Mac 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

137 
* layouts on ISO keyboards, SECTION SIGN and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

138 
* DEGREE SIGN in a Swiss German layout (Mac: 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

139 
* only on ISO keyboards), CIRCUMFLEX ACCENT and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

140 
* DEGREE SIGN in a German layout (Mac: only on 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

141 
* ISO keyboards), SUPERSCRIPT TWO and TILDE in a 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

142 
* French Windows layout, COMMERCIAL AT and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

143 
* NUMBER SIGN in a French Mac layout on ISO 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

144 
* keyboards, and LESSTHAN SIGN and GREATERTHAN 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

145 
* SIGN in a Swiss German, German, or French Mac 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

146 
* layout on ANSI keyboards. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

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

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

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

151 

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

152 
SDL_SCANCODE_CAPSLOCK = 57, 
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_F1 = 58, 
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

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

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

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

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

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

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

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

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

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

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

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

166 

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

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

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

169 
SDL_SCANCODE_PAUSE = 72, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

170 
SDL_SCANCODE_INSERT = 73, /**< insert on PC, help on some Mac keyboards (but 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

171 
does send code 73, not 117) */ 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

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

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

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

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

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

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

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

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

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

181 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

182 
SDL_SCANCODE_NUMLOCKCLEAR = 83, /**< num lock on PC, clear on Mac keyboards 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

184 
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

185 
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

186 
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

187 
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

188 
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

189 
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

190 
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

191 
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

192 
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

193 
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

194 
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

195 
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

196 
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

197 
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

198 
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

199 
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

200 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

201 
SDL_SCANCODE_NONUSBACKSLASH = 100, /**< This is the additional key that ISO 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

202 
* keyboards have over ANSI ones, 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

203 
* located between left shift and Y. 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

204 
* Produces GRAVE ACCENT and TILDE in a 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

205 
* US or UK Mac layout, REVERSE SOLIDUS 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

206 
* (backslash) and VERTICAL LINE in a 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

207 
* US or UK Windows layout, and 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

208 
* LESSTHAN SIGN and GREATERTHAN SIGN 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

209 
* in a Swiss German, German, or French 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

211 
SDL_SCANCODE_APPLICATION = 101, /**< windows contextual menu, compose */ 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

212 
SDL_SCANCODE_POWER = 102, /**< The USB document says this is a status flag, 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

213 
* not a physical key  but some Mac keyboards 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

214 
* do have a power key. */ 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

215 
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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

232 
SDL_SCANCODE_STOP = 120, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

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

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

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

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

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

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

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

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

242 
/* 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

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

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

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

246 
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

247 
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

248 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

249 
SDL_SCANCODE_INTERNATIONAL1 = 135, /**< used on Asian keyboards, see 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

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

252 
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

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

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

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

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

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

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

259 
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

260 
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

261 
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

262 
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

263 
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

264 
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

265 
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

266 
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

267 
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

268 

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

269 
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

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

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

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

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

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

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

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

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

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

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

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

281 

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

282 
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

283 
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

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

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

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

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

288 
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

289 
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

290 
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

291 
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

292 
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

293 
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

294 
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

295 
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

296 
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

297 
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

298 
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

299 
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

300 
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

301 
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

302 
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

303 
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

304 
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

305 
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

306 
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

307 
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

308 
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

309 
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

310 
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

311 
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

312 
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

313 
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

314 
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

315 
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

316 
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

317 
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

318 
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

319 
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

320 
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

321 
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

322 
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

323 
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

324 
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

325 
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

326 
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

327 
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

328 

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

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

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

331 
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

332 
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

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

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

335 
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

336 
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

337 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

338 
SDL_SCANCODE_MODE = 257, /**< I'm not sure if this is really not covered 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

339 
* by any of the above, but since there's a 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

340 
* special KMOD_MODE for it I'm adding it here 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

341 
*/ 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

342 

d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

343 
/*@}*//*Usage page 0x07*/ 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

344 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

345 
/** 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

346 
* \name Usage page 0x0C 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

347 
* 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

348 
* These values are mapped from usage page 0x0C (USB consumer page). 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

349 
*/ 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

351 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

368 
SDL_SCANCODE_AC_BOOKMARKS = 274, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

369 

d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

370 
/*@}*//*Usage page 0x0C*/ 
2303
d87417504c75
First pass implementation of new SDL scancode concept, as discussed with
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset

371 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

372 
/** 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

373 
* \name Walther keys 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

374 
* 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

375 
* These are values that Christian Walther added (for mac keyboard?). 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

376 
*/ 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

378 

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

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

380 
SDL_SCANCODE_BRIGHTNESSUP = 276, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

381 
SDL_SCANCODE_DISPLAYSWITCH = 277, /**< display mirroring/dual display 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

382 
switch, video mode switch */ 
2305
fbe8ff44c519
First pass of new SDL scancode concept for X11.
Sam Lantinga <slouken@libsdl.org>
parents:
2303
diff
changeset

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

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

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

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

387 
SDL_SCANCODE_SLEEP = 282, 
3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

388 

d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

390 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

392 

3407
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

393 
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes 
d3baf5ac4e37
Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents:
2859
diff
changeset

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

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

396 

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

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

398 

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

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