src/video/vgl/SDL_vglevents_c.h
author Edgar Simo <bobbens@gmail.com>
Sun, 06 Jul 2008 17:06:37 +0000
branchgsoc2008_force_feedback
changeset 2498 ab567bd667bf
parent 1895 c121d94672cb
child 2859 99210400e8b9
permissions -rw-r--r--
Fixed various mistakes in the doxygen.
slouken@75
     1
/*
slouken@75
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@75
     4
slouken@75
     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@75
     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@75
     9
slouken@75
    10
    This library is distributed in the hope that it will be useful,
slouken@75
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@75
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@75
    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@75
    18
slouken@75
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@75
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@75
    23
slouken@75
    24
#include "SDL_vglvideo.h"
slouken@75
    25
slouken@75
    26
/* Variables and functions exported by SDL_sysevents.c to other parts 
slouken@75
    27
   of the native video subsystem (SDL_sysvideo.c)
slouken@75
    28
*/
slouken@75
    29
extern int VGL_initkeymaps(int fd);
slouken@75
    30
extern int VGL_initmouse(int fd);
slouken@75
    31
extern void VGL_keyboardcallback(int scancode, int pressed);
slouken@75
    32
slouken@75
    33
extern void VGL_InitOSKeymap(_THIS);
slouken@75
    34
extern void VGL_PumpEvents(_THIS);
slouken@75
    35
slouken@75
    36
/* Mouse buttons */
slouken@75
    37
#define MOUSE_LEFTBUTTON        0x01
slouken@75
    38
#define MOUSE_MIDDLEBUTTON      0x02
slouken@75
    39
#define MOUSE_RIGHTBUTTON       0x04
slouken@75
    40
slouken@75
    41
/* Scancodes */
slouken@75
    42
#define SCANCODE_ESCAPE			1
slouken@75
    43
#define SCANCODE_1			2
slouken@75
    44
#define SCANCODE_2			3
slouken@75
    45
#define SCANCODE_3			4
slouken@75
    46
#define SCANCODE_4			5
slouken@75
    47
#define SCANCODE_5			6
slouken@75
    48
#define SCANCODE_6			7
slouken@75
    49
#define SCANCODE_7			8
slouken@75
    50
#define SCANCODE_8			9
slouken@75
    51
#define SCANCODE_9			10
slouken@75
    52
#define SCANCODE_0			11
slouken@75
    53
#define SCANCODE_MINUS			12
slouken@75
    54
#define SCANCODE_EQUAL			13
slouken@75
    55
#define SCANCODE_BACKSPACE		14
slouken@75
    56
#define SCANCODE_TAB			15
slouken@75
    57
#define SCANCODE_Q			16
slouken@75
    58
#define SCANCODE_W			17
slouken@75
    59
#define SCANCODE_E			18
slouken@75
    60
#define SCANCODE_R			19
slouken@75
    61
#define SCANCODE_T			20
slouken@75
    62
#define SCANCODE_Y			21
slouken@75
    63
#define SCANCODE_U			22
slouken@75
    64
#define SCANCODE_I			23
slouken@75
    65
#define SCANCODE_O			24
slouken@75
    66
#define SCANCODE_P			25
slouken@75
    67
#define SCANCODE_BRACKET_LEFT		26
slouken@75
    68
#define SCANCODE_BRACKET_RIGHT		27
slouken@75
    69
#define SCANCODE_ENTER			28
slouken@75
    70
#define SCANCODE_LEFTCONTROL		29
slouken@75
    71
#define SCANCODE_A			30
slouken@75
    72
#define SCANCODE_S			31
slouken@75
    73
#define SCANCODE_D			32
slouken@75
    74
#define SCANCODE_F			33
slouken@75
    75
#define SCANCODE_G			34
slouken@75
    76
#define SCANCODE_H			35
slouken@75
    77
#define SCANCODE_J			36
slouken@75
    78
#define SCANCODE_K			37
slouken@75
    79
#define SCANCODE_L			38
slouken@75
    80
#define SCANCODE_SEMICOLON		39
slouken@75
    81
#define SCANCODE_APOSTROPHE		40
slouken@75
    82
#define SCANCODE_GRAVE			41
slouken@75
    83
#define SCANCODE_LEFTSHIFT		42
slouken@75
    84
#define SCANCODE_BACKSLASH		43
slouken@75
    85
#define SCANCODE_Z			44
slouken@75
    86
#define SCANCODE_X			45
slouken@75
    87
#define SCANCODE_C			46
slouken@75
    88
#define SCANCODE_V			47
slouken@75
    89
#define SCANCODE_B			48
slouken@75
    90
#define SCANCODE_N			49
slouken@75
    91
#define SCANCODE_M			50
slouken@75
    92
#define SCANCODE_COMMA			51
slouken@75
    93
#define SCANCODE_PERIOD			52
slouken@75
    94
#define SCANCODE_SLASH			53
slouken@75
    95
#define SCANCODE_RIGHTSHIFT		54
slouken@75
    96
#define SCANCODE_KEYPADMULTIPLY		55
slouken@75
    97
#define SCANCODE_LEFTALT		56
slouken@75
    98
#define SCANCODE_SPACE			57
slouken@75
    99
#define SCANCODE_CAPSLOCK		58
slouken@75
   100
#define SCANCODE_F1			59
slouken@75
   101
#define SCANCODE_F2			60
slouken@75
   102
#define SCANCODE_F3			61
slouken@75
   103
#define SCANCODE_F4			62
slouken@75
   104
#define SCANCODE_F5			63
slouken@75
   105
#define SCANCODE_F6			64
slouken@75
   106
#define SCANCODE_F7			65
slouken@75
   107
#define SCANCODE_F8			66
slouken@75
   108
#define SCANCODE_F9			67
slouken@75
   109
#define SCANCODE_F10			68
slouken@75
   110
#define SCANCODE_NUMLOCK		69
slouken@75
   111
#define SCANCODE_SCROLLLOCK		70
slouken@75
   112
#define SCANCODE_KEYPAD7		71
slouken@75
   113
#define SCANCODE_CURSORUPLEFT		71
slouken@75
   114
#define SCANCODE_KEYPAD8		72
slouken@75
   115
#define SCANCODE_CURSORUP		72
slouken@75
   116
#define SCANCODE_KEYPAD9		73
slouken@75
   117
#define SCANCODE_CURSORUPRIGHT		73
slouken@75
   118
#define SCANCODE_KEYPADMINUS		74
slouken@75
   119
#define SCANCODE_KEYPAD4		75
slouken@75
   120
#define SCANCODE_CURSORLEFT		75
slouken@75
   121
#define SCANCODE_KEYPAD5		76
slouken@75
   122
#define SCANCODE_KEYPAD6		77
slouken@75
   123
#define SCANCODE_CURSORRIGHT		77
slouken@75
   124
#define SCANCODE_KEYPADPLUS		78
slouken@75
   125
#define SCANCODE_KEYPAD1		79
slouken@75
   126
#define SCANCODE_CURSORDOWNLEFT		79
slouken@75
   127
#define SCANCODE_KEYPAD2		80
slouken@75
   128
#define SCANCODE_CURSORDOWN		80
slouken@75
   129
#define SCANCODE_KEYPAD3		81
slouken@75
   130
#define SCANCODE_CURSORDOWNRIGHT	81
slouken@75
   131
#define SCANCODE_KEYPAD0		82
slouken@75
   132
#define SCANCODE_KEYPADPERIOD		83
slouken@75
   133
#define SCANCODE_LESS			86
slouken@75
   134
#define SCANCODE_F11			87
slouken@75
   135
#define SCANCODE_F12			88
slouken@75
   136
#define SCANCODE_KEYPADENTER		89
slouken@75
   137
#define SCANCODE_RIGHTCONTROL		90
slouken@75
   138
#define SCANCODE_CONTROL		107
slouken@75
   139
#define SCANCODE_KEYPADDIVIDE		91
slouken@75
   140
#define SCANCODE_PRINTSCREEN		92
slouken@75
   141
#define SCANCODE_RIGHTALT		93
slouken@1895
   142
#define SCANCODE_BREAK			104     /* Beware: is 119     */
slouken@1895
   143
#define SCANCODE_BREAK_ALTERNATIVE	104     /* on some keyboards! */
slouken@75
   144
#define SCANCODE_HOME			94
slouken@1895
   145
#define SCANCODE_CURSORBLOCKUP		95      /* Cursor key block */
slouken@75
   146
#define SCANCODE_PAGEUP			96
slouken@1895
   147
#define SCANCODE_CURSORBLOCKLEFT	97      /* Cursor key block */
slouken@1895
   148
#define SCANCODE_CURSORBLOCKRIGHT	98      /* Cursor key block */
slouken@75
   149
#define SCANCODE_END			99
slouken@1895
   150
#define SCANCODE_CURSORBLOCKDOWN	100     /* Cursor key block */
slouken@75
   151
#define SCANCODE_PAGEDOWN		101
slouken@75
   152
#define SCANCODE_INSERT			102
slouken@75
   153
#define SCANCODE_REMOVE			103
slouken@75
   154
#define SCANCODE_RIGHTWIN		106
slouken@75
   155
#define SCANCODE_LEFTWIN		105
slouken@1895
   156
/* vi: set ts=4 sw=4 expandtab: */