Wing Commander II
Reconstructed Win32 source (1996)
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 */
10{
11 int savedQueueState;
12 short key;
13
14 savedQueueState = g_bInputEventQueueEnabled;
16 while ((key = (short)WaitForAnyInputPress()) == 0)
17 ;
18 g_bInputEventQueueEnabled = savedQueueState;
19 return key;
20}
short WaitForQueuedInputPress(void)
Definition waitkey.c:9
unsigned short WaitForAnyInputPress(void)
Definition disk.c:347
Shared Win32 declarations, types and library interfaces.
int g_bInputEventQueueEnabled
Definition winmain.c:1350