mirror of
https://github.com/reactos/reactos.git
synced 2026-07-03 07:34:53 +08:00
Corrected a number of bugs, including the keyboard one
svn path=/trunk/; revision=115
This commit is contained in:
@@ -11,7 +11,7 @@ void debug_printf(char* fmt, ...)
|
||||
|
||||
va_start(args,fmt);
|
||||
vsprintf(buffer,fmt,args);
|
||||
OutputDebugString(buffer);
|
||||
OutputDebugStringA(buffer);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
@@ -36,18 +36,18 @@ void main()
|
||||
0,
|
||||
NULL);
|
||||
|
||||
NtDisplayString("#1\n");
|
||||
|
||||
debug_printf("C:\\");
|
||||
NtDisplayString("#2\n");
|
||||
for(;;)
|
||||
{
|
||||
ReadFile(FileHandle,
|
||||
&KeyEvent,
|
||||
sizeof(KeyEvent),
|
||||
sizeof(KEY_EVENT_RECORD),
|
||||
&Result,
|
||||
NULL);
|
||||
NtDisplayString("#3\n");
|
||||
debug_printf("%c",KeyEvent[0].AsciiChar);
|
||||
NtDisplayString("#4\n");
|
||||
if (KeyEvent[0].bKeyDown)
|
||||
{
|
||||
debug_printf("%c",KeyEvent[0].AsciiChar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user