Skip to content
Snippets Groups Projects
Commit ec5dea24 authored by deuce's avatar deuce
Browse files

More fixes for scancode stuff...

parent df331c85
No related branches found
No related tags found
No related merge requests found
......@@ -42,15 +42,6 @@
const int cio_tabs[10]={9,17,25,33,41,49,57,65,73,80};
const int altkeys[26]={
30,48,46,32
,18,33,34,35
,23,36,37,38
,50,49,24,25
,16,19,31,20
,22,47,17,45
,21,44};
struct vid_mode {
int mode;
int xsize;
......@@ -180,10 +171,6 @@ int win32_keyboardio(int isgetch)
#endif
if(input.Event.KeyEvent.dwControlKeyState & (LEFT_ALT_PRESSED|RIGHT_ALT_PRESSED)) {
if(isalpha(input.Event.KeyEvent.uChar.AsciiChar)) {
lastch=altkeys[toupper(input.Event.KeyEvent.uChar.AsciiChar)-'A']<<8;
break;
}
if(input.Event.KeyEvent.wVirtualScanCode >= CIO_KEY_F(1)
&& input.Event.KeyEvent.wVirtualScanCode <= CIO_KEY_F(10)) {
/* Magic number to convert from Fx to ALT-Fx */
......@@ -196,6 +183,8 @@ int win32_keyboardio(int isgetch)
lastch=input.Event.KeyEvent.wVirtualScanCode+6;
break;
}
lastch=input.Event.KeyEvent.wVirtualScanCode<<8;
}
if(input.Event.KeyEvent.uChar.AsciiChar)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment