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