SDL_atarikeys.h
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:4k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /*
  2.     SDL - Simple DirectMedia Layer
  3.     Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2 of the License, or (at your option) any later version.
  8.     This library is distributed in the hope that it will be useful,
  9.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.     Library General Public License for more details.
  12.     You should have received a copy of the GNU Library General Public
  13.     License along with this library; if not, write to the Free
  14.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  15.     Sam Lantinga
  16.     slouken@libsdl.org
  17. */
  18. #ifdef SAVE_RCSID
  19. static char rcsid =
  20.  "@(#) $Id: SDL_atarikeys.h,v 1.1 2002/04/22 21:38:04 wmay Exp $";
  21. #endif
  22. /*
  23.  * Atari Scancode definitions
  24.  *
  25.  * Patrice Mandin
  26.  */
  27. #ifndef _SDL_ATARIKEYS_H_
  28. #define _SDL_ATARIKEYS_H_ 
  29. /* --- Keyboard scancodes --- */
  30. /* taken from svgalib/vgakeyboard.h */
  31. #define SCANCODE_ESCAPE 0x01
  32. #define SCANCODE_1 0x02
  33. #define SCANCODE_2 0x03
  34. #define SCANCODE_3 0x04
  35. #define SCANCODE_4 0x05
  36. #define SCANCODE_5 0x06
  37. #define SCANCODE_6 0x07
  38. #define SCANCODE_7 0x08
  39. #define SCANCODE_8 0x09
  40. #define SCANCODE_9 0x0a
  41. #define SCANCODE_0 0x0b
  42. #define SCANCODE_MINUS 0x0c
  43. #define SCANCODE_EQUAL 0x0d
  44. #define SCANCODE_BACKSPACE 0x0e
  45. #define SCANCODE_TAB 0x0f
  46. #define SCANCODE_Q 0x10
  47. #define SCANCODE_W 0x11
  48. #define SCANCODE_E 0x12
  49. #define SCANCODE_R 0x13
  50. #define SCANCODE_T 0x14
  51. #define SCANCODE_Y 0x15
  52. #define SCANCODE_U 0x16
  53. #define SCANCODE_I 0x17
  54. #define SCANCODE_O 0x18
  55. #define SCANCODE_P 0x19
  56. #define SCANCODE_BRACKET_LEFT 0x1a
  57. #define SCANCODE_BRACKET_RIGHT 0x1b
  58. #define SCANCODE_ENTER 0x1c
  59. #define SCANCODE_DELETE 0x53
  60. #define SCANCODE_LEFTCONTROL 0x1d
  61. #define SCANCODE_A 0x1e
  62. #define SCANCODE_S 0x1f
  63. #define SCANCODE_D 0x20
  64. #define SCANCODE_F 0x21
  65. #define SCANCODE_G 0x22
  66. #define SCANCODE_H 0x23
  67. #define SCANCODE_J 0x24
  68. #define SCANCODE_K 0x25
  69. #define SCANCODE_L 0x26
  70. #define SCANCODE_SEMICOLON 0x27
  71. #define SCANCODE_APOSTROPHE 0x28
  72. #define SCANCODE_GRAVE 0x29
  73. #define SCANCODE_LEFTSHIFT 0x2a
  74. #define SCANCODE_BACKSLASH 0x2b
  75. #define SCANCODE_Z 0x2c
  76. #define SCANCODE_X 0x2d
  77. #define SCANCODE_C 0x2e
  78. #define SCANCODE_V 0x2f
  79. #define SCANCODE_B 0x30
  80. #define SCANCODE_N 0x31
  81. #define SCANCODE_M 0x32
  82. #define SCANCODE_COMMA 0x33
  83. #define SCANCODE_PERIOD 0x34
  84. #define SCANCODE_SLASH 0x35
  85. #define SCANCODE_RIGHTSHIFT 0x36
  86. #define SCANCODE_LEFTALT 0x38
  87. #define SCANCODE_SPACE 0x39
  88. #define SCANCODE_CAPSLOCK 0x3a
  89. /* Functions keys */
  90. #define SCANCODE_F1 0x3b
  91. #define SCANCODE_F2 0x3c
  92. #define SCANCODE_F3 0x3d
  93. #define SCANCODE_F4 0x3e
  94. #define SCANCODE_F5 0x3f
  95. #define SCANCODE_F6 0x40
  96. #define SCANCODE_F7 0x41
  97. #define SCANCODE_F8 0x42
  98. #define SCANCODE_F9 0x43
  99. #define SCANCODE_F10 0x44
  100. /* Numeric keypad */
  101. #define SCANCODE_KP0 0x70
  102. #define SCANCODE_KP1 0x6d
  103. #define SCANCODE_KP2 0x6e
  104. #define SCANCODE_KP3 0x6f
  105. #define SCANCODE_KP4 0x6a
  106. #define SCANCODE_KP5 0x6b
  107. #define SCANCODE_KP6 0x6c
  108. #define SCANCODE_KP7 0x67
  109. #define SCANCODE_KP8 0x68
  110. #define SCANCODE_KP9 0x69
  111. #define SCANCODE_KP_PERIOD 0x71
  112. #define SCANCODE_KP_DIVIDE 0x65
  113. #define SCANCODE_KP_MULTIPLY 0x66
  114. #define SCANCODE_KP_MINUS 0x4a
  115. #define SCANCODE_KP_PLUS 0x4e
  116. #define SCANCODE_KP_ENTER 0x72
  117. #define SCANCODE_KP_LEFTPAREN 0x63
  118. #define SCANCODE_KP_RIGHTPAREN 0x64
  119. /* Cursor keypad */
  120. #define SCANCODE_HELP 0x62
  121. #define SCANCODE_UNDO 0x61
  122. #define SCANCODE_INSERT 0x52
  123. #define SCANCODE_CLRHOME 0x47
  124. #define SCANCODE_UP 0x48
  125. #define SCANCODE_DOWN 0x50
  126. #define SCANCODE_RIGHT 0x4d
  127. #define SCANCODE_LEFT 0x4b
  128. #endif /* _SDL_ATARIKEYS_H_ */