Wing Commander II
Reconstructed Win32 source (1996)
Toggle main menu visibility
Loading...
Searching...
No Matches
waitkey.c
Go to the documentation of this file.
1
/*
2
* Waits for a queued input press.
3
*
4
* Retail object 0x465730-0x46577F (link order; see docs/ORDER.md).
5
*/
6
#include "
game.h
"
7
8
/* Function start: 0x465730 */
9
short
WaitForQueuedInputPress
(
void
)
10
{
11
int
savedQueueState;
12
short
key;
13
14
savedQueueState =
g_bInputEventQueueEnabled
;
15
g_bInputEventQueueEnabled
= 1;
16
while
((key = (
short
)
WaitForAnyInputPress
()) == 0)
17
;
18
g_bInputEventQueueEnabled
= savedQueueState;
19
return
key;
20
}
WaitForQueuedInputPress
short WaitForQueuedInputPress(void)
Definition
waitkey.c:9
WaitForAnyInputPress
unsigned short WaitForAnyInputPress(void)
Definition
disk.c:347
game.h
Shared Win32 declarations, types and library interfaces.
g_bInputEventQueueEnabled
int g_bInputEventQueueEnabled
Definition
winmain.c:1350
src
waitkey.c
Generated by
1.18.0