7ad52d0d9d
+ properly handle keyboard input; + enable linear modes (required for SDL); - still no mouse yet.
51 lines
1.8 KiB
Text
51 lines
1.8 KiB
Text
--- src/keyboard/vgakeyboard.h 2000/08/30 16:11:47 1.1
|
|
+++ src/keyboard/vgakeyboard.h 2000/08/30 16:26:15
|
|
@@ -120,28 +120,28 @@
|
|
#define SCANCODE_F11 87
|
|
#define SCANCODE_F12 88
|
|
|
|
-#define SCANCODE_KEYPADENTER 96
|
|
-#define SCANCODE_RIGHTCONTROL 97
|
|
-#define SCANCODE_CONTROL 97
|
|
-#define SCANCODE_KEYPADDIVIDE 98
|
|
-#define SCANCODE_PRINTSCREEN 99
|
|
-#define SCANCODE_RIGHTALT 100
|
|
-#define SCANCODE_BREAK 101 /* Beware: is 119 */
|
|
-#define SCANCODE_BREAK_ALTERNATIVE 119 /* on some keyboards! */
|
|
+#define SCANCODE_KEYPADENTER 89
|
|
+#define SCANCODE_RIGHTCONTROL 90
|
|
+#define SCANCODE_CONTROL 107
|
|
+#define SCANCODE_KEYPADDIVIDE 91
|
|
+#define SCANCODE_PRINTSCREEN 92
|
|
+#define SCANCODE_RIGHTALT 93
|
|
+#define SCANCODE_BREAK 104 /* Beware: is 119 */
|
|
+#define SCANCODE_BREAK_ALTERNATIVE 104 /* on some keyboards! */
|
|
|
|
-#define SCANCODE_HOME 102
|
|
-#define SCANCODE_CURSORBLOCKUP 103 /* Cursor key block */
|
|
-#define SCANCODE_PAGEUP 104
|
|
-#define SCANCODE_CURSORBLOCKLEFT 105 /* Cursor key block */
|
|
-#define SCANCODE_CURSORBLOCKRIGHT 106 /* Cursor key block */
|
|
-#define SCANCODE_END 107
|
|
-#define SCANCODE_CURSORBLOCKDOWN 108 /* Cursor key block */
|
|
-#define SCANCODE_PAGEDOWN 109
|
|
-#define SCANCODE_INSERT 110
|
|
-#define SCANCODE_REMOVE 111
|
|
+#define SCANCODE_HOME 94
|
|
+#define SCANCODE_CURSORBLOCKUP 95 /* Cursor key block */
|
|
+#define SCANCODE_PAGEUP 96
|
|
+#define SCANCODE_CURSORBLOCKLEFT 97 /* Cursor key block */
|
|
+#define SCANCODE_CURSORBLOCKRIGHT 98 /* Cursor key block */
|
|
+#define SCANCODE_END 99
|
|
+#define SCANCODE_CURSORBLOCKDOWN 100 /* Cursor key block */
|
|
+#define SCANCODE_PAGEDOWN 101
|
|
+#define SCANCODE_INSERT 102
|
|
+#define SCANCODE_REMOVE 103
|
|
|
|
-#define SCANCODE_RIGHTWIN 126
|
|
-#define SCANCODE_LEFTWIN 125
|
|
+#define SCANCODE_RIGHTWIN 106
|
|
+#define SCANCODE_LEFTWIN 105
|
|
|
|
#define KEY_EVENTRELEASE 0
|
|
#define KEY_EVENTPRESS 1
|