|
Wing Commander
Reconstructed Win32 source (1996)
|
Win32 system services: mouse, keyboard and clock wrappers, font workspaces, CD-ROM location and disc-swap prompts. More...
#include "wc1.h"Go to the source code of this file.
Functions | |
| void | SetMousePosition (int x, int y) |
| unsigned int | PollKeyboardState (void) |
| int | GetShiftKeyState (void) |
| int | GetControlKeyState (void) |
| unsigned int | GetKeyboardModifiers (void) |
| unsigned int | GetGameClockTicks (void) |
| void | InitGameClockEpoch (void) |
| void | WriteDebugString (const char *s) |
| void | SetMousePositionDuplicate (int x, int y) |
| FontWorkspace ** | AllocateFontWorkspace (short fontIndex) |
| void | FreeFontWorkspace (FontWorkspace **workspace) |
| char * | LocateStreamsDirOnDisc (void) |
| char | FindCdRomDriveByVolumeLabel (const char *label, const char *directory) |
| int | SetCurrentDirOnDrive (char drive, const char *directory) |
| int | PromptInsertCorrectCd (void) |
| short __stdcall | OpenDataFileOrDie (const char *path) |
Variables | |
| static int | nInsertKeyDown |
| static int | nClearedKeyboard |
| static unsigned char | abUnusedPollArea [0x80] |
| static int | nOemPeriodKeyStatus |
| static int | nHomeState |
| static int | nPageDownKeyHeld |
| static int | nOemCommaKeyPressed |
| static int | nRightArrowKeyHeld |
| static int | nEndKeyDown |
| static int | nClearKeyState |
| static int | nDeleteKeyDown |
| static int | nUpArrowKeyState |
| static int | nDownArrowKeyState |
| static char | szStreamsDir [0x100] |
| static int | nPageUpKeyState |
| static int | nLeftArrowKeyState |
| HWND | hMainWindow |
| HANDLE | hSingleInstanceSemaphore |
| unsigned long | dwGameClockBaseValue |
| struct GuardedAllocation * | pGuardedAllocationTail |
| char | szMemoryUsage [0x80] |
Win32 system services: mouse, keyboard and clock wrappers, font workspaces, CD-ROM location and disc-swap prompts.
Address range 402e80-4034ff. It is one unit, not two: PollKeyboardState's statics and LocateStreamsDirOnDisc's szStreamsDir interleave in the original's .bss (475b68-475d1f), and statics are private to one object. Its string literals occupy 46535c-4653fc.
Definition in file winsys.c.
| FontWorkspace ** AllocateFontWorkspace | ( | short | fontIndex | ) |
Definition at line 155 of file winsys.c.
References AllocateFontWorkspace().
Referenced by AllocateFontWorkspace(), and InitializeTextContextFromFont().
| char FindCdRomDriveByVolumeLabel | ( | const char * | label, |
| const char * | directory ) |
Definition at line 215 of file winsys.c.
References FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and LocateStreamsDirOnDisc().
| void FreeFontWorkspace | ( | FontWorkspace ** | workspace | ) |
Definition at line 174 of file winsys.c.
References FreeFontWorkspace().
Referenced by FreeFontWorkspace(), and ReleaseTextFont().
| int GetControlKeyState | ( | void | ) |
Definition at line 117 of file winsys.c.
References GetControlKeyState().
Referenced by GetControlKeyState(), HandleSpaceFlightControls(), process_player_input(), and QueueInputEvent().
| unsigned int GetGameClockTicks | ( | void | ) |
Definition at line 129 of file winsys.c.
References dwGameClockBaseValue, and GetGameClockTicks().
Referenced by GetGameClockTicks(), and SplitGameClockTicks().
| unsigned int GetKeyboardModifiers | ( | void | ) |
Definition at line 123 of file winsys.c.
References GetKeyboardModifiers(), and nSystemKeyDown.
Referenced by GetKeyboardModifiers(), HandleSpaceFlightControls(), and QueueInputEvent().
| int GetShiftKeyState | ( | void | ) |
Definition at line 111 of file winsys.c.
References GetShiftKeyState().
Referenced by GetShiftKeyState(), process_player_input(), QueueInputEvent(), and ReadTextInput().
Definition at line 135 of file winsys.c.
References dwGameClockBaseValue, and InitGameClockEpoch().
Referenced by InitGameClockEpoch(), and WinMain().
| char * LocateStreamsDirOnDisc | ( | void | ) |
Definition at line 188 of file winsys.c.
References FindCdRomDriveByVolumeLabel(), LocateStreamsDirOnDisc(), and szStreamsDir.
Referenced by LocateStreamsDirOnDisc(), PromptInsertCorrectCd(), and Streamer_open().
| short __stdcall OpenDataFileOrDie | ( | const char * | path | ) |
Definition at line 297 of file winsys.c.
References nPacketError, and OpenDataFileOrDie().
Referenced by EnsureSaveGameFile(), get_pilot_talk(), LoadGame(), LoadInstallDat(), OpenDataFileOrDie(), OpenDiskDataFile(), OpenPacketSection(), and SaveGame().
| unsigned int PollKeyboardState | ( | void | ) |
Definition at line 62 of file winsys.c.
References nClearedKeyboard, nClearKeyState, nDeleteKeyDown, nDownArrowKeyState, nEndKeyDown, nHomeState, nInsertKeyDown, nLeftArrowKeyState, nOemCommaKeyPressed, nOemPeriodKeyStatus, nPageDownKeyHeld, nPageUpKeyState, nRightArrowKeyHeld, nUpArrowKeyState, and PollKeyboardState().
Referenced by player_input(), and PollKeyboardState().
| int PromptInsertCorrectCd | ( | void | ) |
Definition at line 278 of file winsys.c.
References LocateStreamsDirOnDisc(), and PromptInsertCorrectCd().
Referenced by PromptInsertCorrectCd(), and WinMain().
| int SetCurrentDirOnDrive | ( | char | drive, |
| const char * | directory ) |
Definition at line 262 of file winsys.c.
References SetCurrentDirOnDrive().
Referenced by FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().
| void SetMousePosition | ( | int | x, |
| int | y ) |
Definition at line 56 of file winsys.c.
References SetMousePosition().
Referenced by auto_pilot_sequence(), HandleSpaceFlightControls(), init_player_input(), MoveMenuPointerFromKeyboard(), PollMenuInputDevices(), RunSpaceFlight(), and SetMousePosition().
| void SetMousePositionDuplicate | ( | int | x, |
| int | y ) |
Definition at line 149 of file winsys.c.
References SetMousePositionDuplicate().
Referenced by ApplyPackedMousePosition(), SetMouseHomePosition(), and SetMousePositionDuplicate().
| void WriteDebugString | ( | const char * | s | ) |
Definition at line 141 of file winsys.c.
References WriteDebugString().
Referenced by exit_squadron(), sound_effect(), SoundFxTick(), and WriteDebugString().
| unsigned long dwGameClockBaseValue |
Definition at line 51 of file winsys.c.
Referenced by GetGameClockTicks(), and InitGameClockEpoch().
| HWND hMainWindow |
Definition at line 49 of file winsys.c.
Referenced by CreateMainWindow(), GetMainWindowHandle(), MainWindowProc(), PumpWindowMessages(), ShutdownGameWindow(), and WinMain().
| HANDLE hSingleInstanceSemaphore |
Definition at line 50 of file winsys.c.
Referenced by AbortToDesktop(), ShutdownGameWindow(), and WinMain().
|
static |
Definition at line 19 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 34 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 36 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 40 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 33 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 25 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 18 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 45 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 29 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 23 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 27 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 43 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 31 of file winsys.c.
Referenced by PollKeyboardState().
|
static |
Definition at line 38 of file winsys.c.
Referenced by PollKeyboardState().
| struct GuardedAllocation* pGuardedAllocationTail |
Definition at line 52 of file winsys.c.
Referenced by AllocateGuardedMemory(), and FreeGuardedAllocation().
| char szMemoryUsage[0x80] |
Definition at line 53 of file winsys.c.
Referenced by AbortToDesktop(), and MainWindowProc().
|
static |
Definition at line 41 of file winsys.c.
Referenced by LocateStreamsDirOnDisc().