Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
eventmgr.c File Reference

Win32 library port: random, fixed-point math, text, strings and events. More...

#include "game.h"

Go to the source code of this file.

Macros

#define EVENTMGR_C

Functions

short RandomBelow (short n)
void SeedRandomFromClock (void)
unsigned short GetRandomWord (void)
unsigned short RandomInRange (unsigned short lo, unsigned short hi)
short RandomBelowOrEqual (short n)
long MultiplyFixed (int left, int right)
long DivideFixed (int numerator, int denominator)
long SinFixed (short degrees)
long CosFixed (short degrees)
short ArcSin (int value)
short ArcCos (int value)
long Magnitude (int value)
long PlanarMagnitude (int x, int y)
long Vector_magnitude (const FixedVector *vector)
void SetTextCursor (unsigned short a, unsigned short b)
void SetTextContext (TextContext *context)
void WaitForVerticalBlankThunk (void)
void * IdentityHandle (void *v)
void SetWholePaletteFromTriplets (unsigned char *palette)
short ReadWord (unsigned short *p)
short GetFontCharWidth (char i)
void ApplySpacePaletteModeHook (void)
short GetShapeFrameBounds (short *bounds, short x, short y, unsigned char *shape, short frame)
short IsPointInRect (short x, short y, const short *rect)
void SplitPackedPoint (ShortPoint point, short *p)
void DrawTextString (const char *text)
void DrawTextCharacter (char character)
void AppendTextCharacter (char character)
int MeasureShapeFrameStorage (unsigned char *shape, short frame)
unsigned int DosFarPtrToNear (void *v)
void * DosNearPtrToFar (unsigned int v)
char * DosStrrchr (char *s, short c)
char * DosStrchr (const char *s, short c)
char * DosStrcpy (char *dst, const char *src)
char * CopyStringAndReturnEnd (char *destination, const char *source)
short DosStrlen (const char *s)
void DosMemmove (void *dst, const void *src, size_t n)
void DosMemset (void *destination, unsigned int count, short value)
short InitializePostPaletteState (void)
void RecordStartTimeHook (void)
short InitializeInputManagerMemory (short eventQueueSize)
void ShutdownEventManager (void)
short HookInterruptVector (short vector)
void UnhookInterruptVectorHook (short vector)
void UnhookAllInterruptVectorsHook (void)
void TranslatePolledInputEvent (unsigned short type, unsigned int value)
void QueueInputEventAtCursor (unsigned int type, short primaryButton, short secondaryButton)
InputEvent * AllocateInputEvent (void)
void ReleaseInputEvent (InputEvent *event)
void QueueInputEvent (int type, int x, int y, int value, int primaryButton, int secondaryButton, unsigned int ignored, unsigned int field14, unsigned int field18)
void ReleaseInputEventQueue (void)
void RetainInputEventsOfType (int type)
void RemoveInputEvent (InputEvent *event)
int GetNextInputEvent (InputEventState *state)
int PollInputEvent (InputEventState *event, short deviceMask)
short PeekInputEvent (InputEventState *state, short type)
InputEventState * FindQueuedInputEvent (int type)
void FlushInputEvents (void)
short InitializeMouseCursorDepth (void)
short InitializeMousePointer (void)
void ResetPointerViewportsHook (void)
void SetPointerViewportHook (void)
void RemovePointerViewportHook (void)
void CheckCursor (void)
void CaptureMouseCursorBackground (void)
void DrawMouseCursor (void)
void RestoreMouseCursorBackground (void)
void RefreshMouseCursorDisplay (void)
void ResumeMouseCursorHook (void)
void EnableMouseCursorDrawing (void)
void DisableMouseCursorDrawing (void)
void SetMouseCursorShape (unsigned char *shape, short frame)
void SetMouseHomePosition (short x, short y)
void ApplyPackedMousePosition (ShortPoint point)
void GetMouseHomePosition (ShortPoint *position)
void SetFrameTimerPeriod (short period)
void SetFrameTimerAndWait (short period)
void SetFrameTimerPeriodDirect (short p)
void WaitForFrameTick (void)
short IsFrameTickElapsed (void)
void * AllocateZeroedRecords (int count, short elementSize, short flags)
void DumpFarHeapHook (void)
unsigned short EnableHighMemoryResources (void)
void * AllocateDefaultMemory (unsigned int size)
int GetSoundHardwareFlag (void)
void FreeDefaultMemory (void *block)
void TimerResetHook (void)
DwordPtr IdentityDword (DwordPtr value)
unsigned int IdentityWord (unsigned int v)
void TimerStopHook (void)
unsigned int GetAvailableFarMemory (void)
unsigned int GetLargestFreeMemoryBlock (void)
int InitializeEms (void)
void FormatEmsHeapHook (void)
void * AllocateEmsBlock (unsigned int size)
unsigned int GetEmsTotalFree (void)
short CheckEmsPointer (void *pointer)
void FreeEmsBlockHook (void *block)
int IsEmsPointer (void *pointer)
short EmsSaveMapping (void)
short EmsRestoreMapping (void)
void FlushBiosKeys (void)
void ClearInputKeyStatePreservingModifiers (void)
void ClearInputKeyState (void)
void RebootMachineHook (void)
void KeyboardNullHook (void)
void SetInputKeyState (int scanCode, unsigned char pressed)
void BuildObjectDepthOrder (void)
void draw_sorted_objects_to_buffer (void)
void intro_drawbackgroundships (void)
void set_up_screen_viewport (signed char mode)
int SetupBackBufferHook (void)
void FreeVideoPagesHook (void)
void DumpVideoPageMapHook (void)
void FinalizeInputManagerHook (void)
void MouseIdleHook (void)
short GetNavRangeSentinel (void)
short GetOriginalFreeMemory (void)
void CalibrateDelayHook (void)
void StartupHook (unsigned int(*callback)(unsigned int, short))
short HasKeyIntercept (void)
unsigned int JoystickEdgeHook (int button)
void * AllocateNearMemory (short size)
void FreeIfNotNull (void *p)
unsigned int GetStartupErrorCode (int vector)
void SpeedCalibrationHook (void)
void PersonnelDriveHook (short drive)
unsigned short SelectDiskDriveHook (short drive)
short GetCurrentDiskDriveHook (void)
unsigned short GetShutdownErrorCode (unsigned char *driveState)
void VideoReleaseHook (void)
void ExitCleanupHook (void)
short DetectTandyKeyboard (void)
short IsVectorWithinRange (FixedVector *vector, short range)
unsigned int shrink_vector (FixedVector *vector)
unsigned int shrink (int *component)
short ServiceInputDevices (short deviceMask)
void SetInputViewport (Viewport *viewport)
void ClearInputPump (void)
void SetMenuInputPump (void)
int ConfigureInputPump (int slot, void(*pump)(void))
short LoadInputCursorShape (const char *filename, short section, short flags)
void InitializeInputDriverHook (void)
void FinalizeInputDriverHook (void)
void InputDeviceShutdownHook (void)
void FlushPendingInputEvents (void)
long GetNamedPacketSize (const char *filename, short section)
void * LoadNamedPacket (const char *filename, short section, void *destination, unsigned short flags, void *decompressionWorkspace, int registerHandle)
short OffsetSceneHotspotBounds (ShortRect *bounds, const SceneHotspot *hotspot, short offsetX, short offsetY)
void ServiceCutsceneRuntimeHook (void)
void DIBsetPalette (int index, short *rgb)
void SetPaletteEntryFromTriplet (const unsigned char *triplet, short index)
void SetMusicTickRateHook (short period)
void StopMusicTimerHook (void)
void MusicTimerIsrHook (void)
short IsSpriteFrameOverlappingRect (const ShortRect *rectangle, short x, short y, unsigned char *shape, short frame)
short GetViewportIntersection (ShortRect *intersection, const ShortRect *first, const ShortRect *second)
void SplitGameClockTicksForNav (unsigned char *parts)
void AllocateApplicationScratchBuffer (void)
void ReleaseApplicationScratchBuffer (void)
unsigned char * GetInputCursorShape (void)

Variables

signed char g_bSceneEscapeRequested = 0
InputEvent * g_pInputEventHead = 0
InputEvent * g_pInputEventTail = 0
int g_nInputEventPoolInitialized = 0
int g_nInputDoubleClickDeadline = 0
int g_nPreviousPrimaryButton = 0
int g_nPreviousSecondaryButton = 0
int g_nNextInputQueueFlushTick = 0
unsigned char * g_pDrawnInputCursorShape = 0
int g_nMouseCursorDrawDepth = 1
short g_nScreenWidth = 320
short g_nScreenHeight = 200
int g_nUnusedEventWord1 = 0
int g_nUnusedEventWord2 = 0
ScreenViewportGeometry g_aScreenViewportGeometry [7]
signed char g_acDirectionShapeFrame [DIRECTION_VIEW_COUNT *DIRECTION_SHAPE_TABLE_COUNT]
signed char g_acDirectionShapeFlip [DIRECTION_VIEW_COUNT *DIRECTION_SHAPE_TABLE_COUNT]
int g_nNextInputPollTick = 0
short g_nInputPollPeriod = 0
int g_15_nMouseRenderY
int g_4_nDrawnCursorX
unsigned char g_9_abUnusedInputData [16]
unsigned char * g_39_pCurrentCampaignDataOffset
int g_6_bCurrentInputCursorBackgroundCapturedState
unsigned char g_4_abUnreferencedEventStorage [2]
short g_18_bEventManagerInitializationState
unsigned char g_18_abUnreferencedInputBuffer [4]
unsigned char g_5_abUnusedInputSpace1 [2]
short g_14_nCurrentGraphicsModeDetectedValue
short g_6_wQueuedButtonsState
unsigned char g_88_nEventRepeatDelayState
short g_15_nStoredScreenViewCentreX
short g_37_nViewCenterY
unsigned char g_3_abUnusedLibraryBytes [4]
void * g_26_pLibraryCurrentLastPacketAllocation
short g_19_bStoredHighMemoryEnabled
unsigned char g_26_bMouseCursorEnabled
unsigned char g_77_abKeyboardEventStates [0x80]
unsigned char g_17_abUnusedLibraryInputBuffer [8]
int g_10_nSavedPointerY
int g_4_nCapturedInputCursorX
int g_11_anPlacedObjectDepths [SPACE_OBJECT_COUNT]
unsigned char g_58_abUnreferencedInputStorage1 [8]
unsigned char g_13_abUnusedLibrarySpaceData [4]
short g_96_nHighMemoryInitValue
signed char g_1_cStoredViewDisplayModeValue
signed char g_9_bCinematicSpriteTextEnableStatus
unsigned char g_97_abUnusedInputSystemBuffer [8]
const ScreenViewportGeometry *volatile g_15_pScreenViewportGeometry
int g_56_anStoredObjectSortedIndicesData [SPACE_OBJECT_COUNT]
unsigned char g_5_abUnreferencedInputStorage2 [4]
unsigned char * g_13_pActiveCutscenePixelsAddress
unsigned char g_56_abUnusedEventBuffer [6]
signed char g_cKeypadMouseSpeedValue
QueuedMouseState g_16_stEventQueuePointerData
void(*) g_176_pfnCurrentInputPump (void)
unsigned char g_39_abUnusedInputSpace2 [12]
short g_105_nEmsIsrBusyValue
unsigned char g_68_abUnusedInputSpace3 [16]
signed char g_6_bCampaignFlightRunning
short g_12_wInputDeviceButtonStatus
unsigned char g_38_abUnusedLibraryInputBufferData [4]
unsigned char g_8_abUnusedInputSystemBytes [4]
int g_2_bIgnoreNextCursorMoveFlag
unsigned char g_10_abUnusedEventSpace [8]
short g_86_nCurrentInputTickInterval
volatile int g_5_nFrameTimerWaitTicksValue
int g_26_bPointerDirtyValue
unsigned char g_1_abUnreferencedInputData [4]
short g_9_nStoredHighMemoryResourceSetupWord
int g_138_nCursorDirtyRightValue
int g_15_nPointerDirtyBottom
InputManagerState * g_18_pEventManager
MouseCursorState g_37_stPersonnelMousePointerState
unsigned char g_26_abUnusedInputStorage1 [4]
unsigned char g_26_abUnusedInputStorage2 [4]
short g_49_nViewportOffsetY
short g_11_nViewportLeftOrigin
unsigned char g_4_abUnusedEventStorage [8]
volatile int g_196_nInputTimerTicks
unsigned char g_37_abUnusedEventManagerBuffer [272]
int g_148_nPointerDirtyLeft
int g_146_nInputCursorDirtyTop
unsigned char g_128_abPauseInputState [0x100]
unsigned char g_12_abUnusedLibraryInputData [16]
unsigned char g_13_abPreviousPauseKeyStatuses [0x100]
int g_3_anCurrentInputEventEntryAllocation [0x100]
void(*) g_59_pfnEventShutdownCallback (void)
unsigned char g_9_abUnusedLibrarySpace [260]
void(*) g_3_pfnRenderSceneTextStringHandler (char *text)
PersonnelMouseSample g_6_stPersonnelMouseData
unsigned char g_136_abUnusedInputMemoryData [12]
TextContext * g_29_pCurrentTextContext
unsigned char g_388_abUnusedLibraryBuffer1 [4]
int g_3_nEventClockScaleValue
unsigned char g_86_abUnreferencedEventData [8]
void(*) g_36_pfnRenderSceneFontCharacterHandler (char character)
unsigned char g_59_abUnusedLibraryBuffer2 [4]
unsigned char g_138_abUnusedLibraryData [4]
short g_18_nInterfaceEventMode

Detailed Description

Win32 library port: random, fixed-point math, text, strings and events.

Definition in file eventmgr.c.

Macro Definition Documentation

◆ EVENTMGR_C

#define EVENTMGR_C

Definition at line 7 of file eventmgr.c.

Function Documentation

◆ AllocateApplicationScratchBuffer()

◆ AllocateDefaultMemory()

void * AllocateDefaultMemory ( unsigned int size)

◆ AllocateEmsBlock()

void * AllocateEmsBlock ( unsigned int size)

Definition at line 1536 of file eventmgr.c.

References AllocateEmsBlock().

Referenced by AllocateEmsBlock().

◆ AllocateInputEvent()

◆ AllocateNearMemory()

void * AllocateNearMemory ( short size)

Definition at line 1949 of file eventmgr.c.

References AllocateNearMemory(), and AllocateTaggedMemory().

Referenced by AllocateNearMemory().

◆ AllocateZeroedRecords()

void * AllocateZeroedRecords ( int count,
short elementSize,
short flags )

◆ AppendTextCharacter()

◆ ApplyPackedMousePosition()

◆ ApplySpacePaletteModeHook()

void ApplySpacePaletteModeHook ( void )

◆ ArcCos()

short ArcCos ( int value)

◆ ArcSin()

short ArcSin ( int value)

Definition at line 102 of file eventmgr.c.

References ArcSin().

Referenced by ArcSin(), intelligence_events(), and set_ship_rotation_goals().

◆ BuildObjectDepthOrder()

◆ CalibrateDelayHook()

void CalibrateDelayHook ( void )

Definition at line 1921 of file eventmgr.c.

References CalibrateDelayHook().

Referenced by CalibrateDelayHook().

◆ CaptureMouseCursorBackground()

◆ CheckCursor()

void CheckCursor ( void )

Definition at line 1057 of file eventmgr.c.

References CheckCursor().

Referenced by CheckCursor(), and DosMemmove().

◆ CheckEmsPointer()

short CheckEmsPointer ( void * pointer)

Definition at line 1550 of file eventmgr.c.

References CheckEmsPointer().

Referenced by CheckEmsPointer().

◆ ClearInputKeyState()

void ClearInputKeyState ( void )

◆ ClearInputKeyStatePreservingModifiers()

void ClearInputKeyStatePreservingModifiers ( void )

◆ ClearInputPump()

◆ ConfigureInputPump()

◆ CopyStringAndReturnEnd()

char * CopyStringAndReturnEnd ( char * destination,
const char * source )

Definition at line 471 of file eventmgr.c.

References CopyStringAndReturnEnd().

Referenced by CopyStringAndReturnEnd(), ExpandCutsceneText(), and intelligence_events().

◆ CosFixed()

long CosFixed ( short degrees)

◆ DetectTandyKeyboard()

short DetectTandyKeyboard ( void )

Definition at line 2016 of file eventmgr.c.

References DetectTandyKeyboard().

Referenced by DetectTandyKeyboard().

◆ DIBsetPalette()

void DIBsetPalette ( int index,
short * rgb )

References DIBsetPalette().

◆ DisableMouseCursorDrawing()

◆ DivideFixed()

◆ DosFarPtrToNear()

◆ DosMemmove()

void DosMemmove ( void * dst,
const void * src,
size_t n )

Definition at line 485 of file eventmgr.c.

References DosMemmove().

◆ DosMemset()

void DosMemset ( void * destination,
unsigned int count,
short value )

Definition at line 492 of file eventmgr.c.

References DosMemset().

Referenced by DosMemmove(), DosMemset(), ExpandCutsceneText(), and RunCutsceneScript().

◆ DosNearPtrToFar()

◆ DosStrchr()

◆ DosStrcpy()

◆ DosStrlen()

◆ DosStrrchr()

char * DosStrrchr ( char * s,
short c )

Definition at line 453 of file eventmgr.c.

References DosStrrchr().

Referenced by DosStrrchr(), and intelligence_events().

◆ draw_sorted_objects_to_buffer()

◆ DrawMouseCursor()

◆ DrawTextCharacter()

◆ DrawTextString()

◆ DumpFarHeapHook()

void DumpFarHeapHook ( void )

Definition at line 1449 of file eventmgr.c.

References DumpFarHeapHook().

Referenced by DumpFarHeapHook().

◆ DumpVideoPageMapHook()

void DumpVideoPageMapHook ( void )

Definition at line 1890 of file eventmgr.c.

References DumpVideoPageMapHook().

Referenced by DumpVideoPageMapHook().

◆ EmsRestoreMapping()

short EmsRestoreMapping ( void )

Definition at line 1578 of file eventmgr.c.

References EmsRestoreMapping().

Referenced by DosMemmove(), EmsRestoreMapping(), and SoundBlasterEndOfInterrupt().

◆ EmsSaveMapping()

short EmsSaveMapping ( void )

Definition at line 1571 of file eventmgr.c.

References EmsSaveMapping().

Referenced by DosMemmove(), EmsSaveMapping(), and SoundBlasterDspInterrupt().

◆ EnableHighMemoryResources()

◆ EnableMouseCursorDrawing()

◆ ExitCleanupHook()

void ExitCleanupHook ( void )

Definition at line 2009 of file eventmgr.c.

References ExitCleanupHook().

Referenced by DosMemmove(), and ExitCleanupHook().

◆ FinalizeInputDriverHook()

void FinalizeInputDriverHook ( void )

Definition at line 2144 of file eventmgr.c.

References FinalizeInputDriverHook().

Referenced by DosMemmove(), EMStartUp(), and FinalizeInputDriverHook().

◆ FinalizeInputManagerHook()

void FinalizeInputManagerHook ( void )

Definition at line 1896 of file eventmgr.c.

References FinalizeInputManagerHook().

Referenced by DosMemmove(), FinalizeInputManagerHook(), and LogMemoryUsage().

◆ FindQueuedInputEvent()

◆ FlushBiosKeys()

void FlushBiosKeys ( void )

Definition at line 1586 of file eventmgr.c.

References ClearInputKeyStatePreservingModifiers(), and FlushBiosKeys().

Referenced by FlushBiosKeys().

◆ FlushInputEvents()

◆ FlushPendingInputEvents()

void FlushPendingInputEvents ( void )

◆ FormatEmsHeapHook()

void FormatEmsHeapHook ( void )

Definition at line 1529 of file eventmgr.c.

References FormatEmsHeapHook().

Referenced by FormatEmsHeapHook().

◆ FreeDefaultMemory()

void FreeDefaultMemory ( void * block)

Definition at line 1479 of file eventmgr.c.

References FreeDefaultMemory(), and ReleasePacketHandle().

Referenced by FreeDefaultMemory().

◆ FreeEmsBlockHook()

void FreeEmsBlockHook ( void * block)

Definition at line 1557 of file eventmgr.c.

References FreeEmsBlockHook().

Referenced by FreeEmsBlockHook().

◆ FreeIfNotNull()

void FreeIfNotNull ( void * p)

Definition at line 1955 of file eventmgr.c.

References FreeIfNotNull().

Referenced by DosMemmove(), FreeIfNotNull(), InitializeNearHeap(), and ShutdownNearHeap().

◆ FreeVideoPagesHook()

void FreeVideoPagesHook ( void )

Definition at line 1883 of file eventmgr.c.

References FreeVideoPagesHook().

Referenced by FreeVideoPagesHook().

◆ GetAvailableFarMemory()

◆ GetCurrentDiskDriveHook()

short GetCurrentDiskDriveHook ( void )

Definition at line 1990 of file eventmgr.c.

References GetCurrentDiskDriveHook().

Referenced by DosMemmove(), and GetCurrentDiskDriveHook().

◆ GetEmsTotalFree()

unsigned int GetEmsTotalFree ( void )

Definition at line 1543 of file eventmgr.c.

References GetEmsTotalFree().

Referenced by GetEmsTotalFree().

◆ GetFontCharWidth()

◆ GetInputCursorShape()

◆ GetLargestFreeMemoryBlock()

◆ GetMouseHomePosition()

void GetMouseHomePosition ( ShortPoint * position)

◆ GetNamedPacketSize()

◆ GetNavRangeSentinel()

short GetNavRangeSentinel ( void )

Definition at line 1908 of file eventmgr.c.

References GetNavRangeSentinel().

Referenced by DosMemmove(), GetNavRangeSentinel(), and InitializeNearHeap().

◆ GetNextInputEvent()

◆ GetOriginalFreeMemory()

◆ GetRandomWord()

unsigned short GetRandomWord ( void )

Definition at line 25 of file eventmgr.c.

References GetRandomWord().

Referenced by GetRandomWord(), and intelligence_events().

◆ GetShapeFrameBounds()

short GetShapeFrameBounds ( short * bounds,
short x,
short y,
unsigned char * shape,
short frame )

◆ GetShutdownErrorCode()

unsigned short GetShutdownErrorCode ( unsigned char * driveState)

Definition at line 1996 of file eventmgr.c.

References GetShutdownErrorCode(), and void().

Referenced by DosMemmove(), and GetShutdownErrorCode().

◆ GetSoundHardwareFlag()

int GetSoundHardwareFlag ( void )

Definition at line 1471 of file eventmgr.c.

References GetSoundHardwareFlag().

Referenced by DosMemmove(), and GetSoundHardwareFlag().

◆ GetStartupErrorCode()

unsigned int GetStartupErrorCode ( int vector)

Definition at line 1963 of file eventmgr.c.

References GetStartupErrorCode(), and void().

Referenced by DosMemmove(), and GetStartupErrorCode().

◆ GetViewportIntersection()

short GetViewportIntersection ( ShortRect * intersection,
const ShortRect * first,
const ShortRect * second )

◆ HasKeyIntercept()

short HasKeyIntercept ( void )

Definition at line 1935 of file eventmgr.c.

References HasKeyIntercept().

Referenced by HasKeyIntercept().

◆ HookInterruptVector()

short HookInterruptVector ( short vector)

Definition at line 530 of file eventmgr.c.

References HookInterruptVector().

Referenced by HookInterruptVector().

◆ IdentityDword()

◆ IdentityHandle()

◆ IdentityWord()

unsigned int IdentityWord ( unsigned int v)

Definition at line 1497 of file eventmgr.c.

References IdentityWord().

Referenced by DosMemmove(), get_right_shape(), and IdentityWord().

◆ InitializeEms()

int InitializeEms ( void )

Definition at line 1522 of file eventmgr.c.

References InitializeEms().

Referenced by InitializeEms().

◆ InitializeInputDriverHook()

void InitializeInputDriverHook ( void )

◆ InitializeInputManagerMemory()

short InitializeInputManagerMemory ( short eventQueueSize)

◆ InitializeMouseCursorDepth()

short InitializeMouseCursorDepth ( void )

◆ InitializeMousePointer()

short InitializeMousePointer ( void )

Definition at line 1030 of file eventmgr.c.

References InitializeMousePointer().

Referenced by InitializeMousePointer().

◆ InitializePostPaletteState()

short InitializePostPaletteState ( void )

Definition at line 499 of file eventmgr.c.

References InitializePostPaletteState().

Referenced by DrawTextAt(), InitializePostPaletteState(), and LoadOriginFxDrivers().

◆ InputDeviceShutdownHook()

void InputDeviceShutdownHook ( void )

Definition at line 2151 of file eventmgr.c.

References InputDeviceShutdownHook().

Referenced by InputDeviceShutdownHook().

◆ intro_drawbackgroundships()

◆ IsEmsPointer()

int IsEmsPointer ( void * pointer)

Definition at line 1564 of file eventmgr.c.

References IsEmsPointer().

Referenced by IsEmsPointer().

◆ IsFrameTickElapsed()

short IsFrameTickElapsed ( void )

Definition at line 1430 of file eventmgr.c.

References g_5_nFrameTimerWaitTicksValue, and IsFrameTickElapsed().

Referenced by DosMemmove(), and IsFrameTickElapsed().

◆ IsPointInRect()

short IsPointInRect ( short x,
short y,
const short * rect )

◆ IsSpriteFrameOverlappingRect()

short IsSpriteFrameOverlappingRect ( const ShortRect * rectangle,
short x,
short y,
unsigned char * shape,
short frame )

◆ IsVectorWithinRange()

short IsVectorWithinRange ( FixedVector * vector,
short range )

◆ JoystickEdgeHook()

unsigned int JoystickEdgeHook ( int button)

Definition at line 1941 of file eventmgr.c.

References JoystickEdgeHook(), and void().

Referenced by DosMemmove(), and JoystickEdgeHook().

◆ KeyboardNullHook()

void KeyboardNullHook ( void )

Definition at line 1622 of file eventmgr.c.

References KeyboardNullHook().

Referenced by KeyboardNullHook().

◆ LoadInputCursorShape()

short LoadInputCursorShape ( const char * filename,
short section,
short flags )

◆ LoadNamedPacket()

void * LoadNamedPacket ( const char * filename,
short section,
void * destination,
unsigned short flags,
void * decompressionWorkspace,
int registerHandle )

◆ Magnitude()

long Magnitude ( int value)

Definition at line 130 of file eventmgr.c.

References Magnitude().

Referenced by intelligence_events(), and Magnitude().

◆ MeasureShapeFrameStorage()

int MeasureShapeFrameStorage ( unsigned char * shape,
short frame )

◆ MouseIdleHook()

void MouseIdleHook ( void )

Definition at line 1902 of file eventmgr.c.

References MouseIdleHook().

Referenced by DosMemmove(), and MouseIdleHook().

◆ MultiplyFixed()

◆ MusicTimerIsrHook()

void MusicTimerIsrHook ( void )

Definition at line 2229 of file eventmgr.c.

References MusicTimerIsrHook().

Referenced by MusicTimerIsrHook().

◆ OffsetSceneHotspotBounds()

short OffsetSceneHotspotBounds ( ShortRect * bounds,
const SceneHotspot * hotspot,
short offsetX,
short offsetY )

◆ PeekInputEvent()

◆ PersonnelDriveHook()

void PersonnelDriveHook ( short drive)

◆ PlanarMagnitude()

long PlanarMagnitude ( int x,
int y )

◆ PollInputEvent()

int PollInputEvent ( InputEventState * event,
short deviceMask )

◆ QueueInputEvent()

◆ QueueInputEventAtCursor()

void QueueInputEventAtCursor ( unsigned int type,
short primaryButton,
short secondaryButton )

◆ RandomBelow()

◆ RandomBelowOrEqual()

◆ RandomInRange()

◆ ReadWord()

short ReadWord ( unsigned short * p)

◆ RebootMachineHook()

void RebootMachineHook ( void )

Definition at line 1615 of file eventmgr.c.

References RebootMachineHook().

Referenced by RebootMachineHook().

◆ RecordStartTimeHook()

void RecordStartTimeHook ( void )

Definition at line 506 of file eventmgr.c.

References RecordStartTimeHook().

Referenced by RecordStartTimeHook().

◆ RefreshMouseCursorDisplay()

◆ ReleaseApplicationScratchBuffer()

◆ ReleaseInputEvent()

◆ ReleaseInputEventQueue()

◆ RemoveInputEvent()

◆ RemovePointerViewportHook()

void RemovePointerViewportHook ( void )

Definition at line 1051 of file eventmgr.c.

References RemovePointerViewportHook().

Referenced by RemovePointerViewportHook().

◆ ResetPointerViewportsHook()

void ResetPointerViewportsHook ( void )

Definition at line 1037 of file eventmgr.c.

References ResetPointerViewportsHook().

Referenced by ResetPointerViewportsHook().

◆ RestoreMouseCursorBackground()

◆ ResumeMouseCursorHook()

◆ RetainInputEventsOfType()

◆ SeedRandomFromClock()

void SeedRandomFromClock ( void )

Definition at line 18 of file eventmgr.c.

References SeedRandomFromClock().

Referenced by intelligence_events(), and SeedRandomFromClock().

◆ SelectDiskDriveHook()

unsigned short SelectDiskDriveHook ( short drive)

Definition at line 1984 of file eventmgr.c.

References SelectDiskDriveHook().

Referenced by DosMemmove(), and SelectDiskDriveHook().

◆ ServiceCutsceneRuntimeHook()

void ServiceCutsceneRuntimeHook ( void )

◆ ServiceInputDevices()

◆ set_up_screen_viewport()

◆ SetFrameTimerAndWait()

void SetFrameTimerAndWait ( short period)

◆ SetFrameTimerPeriod()

void SetFrameTimerPeriod ( short period)

◆ SetFrameTimerPeriodDirect()

◆ SetInputKeyState()

void SetInputKeyState ( int scanCode,
unsigned char pressed )

◆ SetInputViewport()

◆ SetMenuInputPump()

◆ SetMouseCursorShape()

◆ SetMouseHomePosition()

◆ SetMusicTickRateHook()

void SetMusicTickRateHook ( short period)

Definition at line 2214 of file eventmgr.c.

References SetMusicTickRateHook(), and void().

Referenced by DosMemmove(), LoadOriginFxDrivers(), and SetMusicTickRateHook().

◆ SetPaletteEntryFromTriplet()

void SetPaletteEntryFromTriplet ( const unsigned char * triplet,
short index )

◆ SetPointerViewportHook()

void SetPointerViewportHook ( void )

Definition at line 1044 of file eventmgr.c.

References SetPointerViewportHook().

Referenced by SetPointerViewportHook().

◆ SetTextContext()

◆ SetTextCursor()

◆ SetupBackBufferHook()

int SetupBackBufferHook ( void )

Definition at line 1876 of file eventmgr.c.

References SetupBackBufferHook().

Referenced by SetupBackBufferHook().

◆ SetWholePaletteFromTriplets()

void SetWholePaletteFromTriplets ( unsigned char * palette)

◆ shrink()

unsigned int shrink ( int * component)

Definition at line 2050 of file eventmgr.c.

References shrink().

Referenced by DosMemmove(), shrink(), and shrink_vector().

◆ shrink_vector()

unsigned int shrink_vector ( FixedVector * vector)

◆ ShutdownEventManager()

◆ SinFixed()

long SinFixed ( short degrees)

◆ SpeedCalibrationHook()

void SpeedCalibrationHook ( void )

Definition at line 1971 of file eventmgr.c.

References SpeedCalibrationHook().

Referenced by SpeedCalibrationHook().

◆ SplitGameClockTicksForNav()

void SplitGameClockTicksForNav ( unsigned char * parts)

◆ SplitPackedPoint()

void SplitPackedPoint ( ShortPoint point,
short * p )

Definition at line 255 of file eventmgr.c.

References IsPointInRect(), SplitPackedPoint(), ShortPoint::x, and ShortPoint::y.

Referenced by intelligence_events(), and SplitPackedPoint().

◆ StartupHook()

void StartupHook ( unsigned int(* callback )(unsigned int, short))

Definition at line 1927 of file eventmgr.c.

References StartupHook(), and void().

Referenced by DosMemmove(), and StartupHook().

◆ StopMusicTimerHook()

void StopMusicTimerHook ( void )

Definition at line 2222 of file eventmgr.c.

References StopMusicTimerHook().

Referenced by StopMusicTimerHook().

◆ TimerResetHook()

void TimerResetHook ( void )

Definition at line 1485 of file eventmgr.c.

References TimerResetHook().

Referenced by ClearMemoryHeaps(), DosMemmove(), and TimerResetHook().

◆ TimerStopHook()

void TimerStopHook ( void )

Definition at line 1503 of file eventmgr.c.

References TimerStopHook().

Referenced by DosMemmove(), MessagePumpHook(), and TimerStopHook().

◆ TranslatePolledInputEvent()

◆ UnhookAllInterruptVectorsHook()

void UnhookAllInterruptVectorsHook ( void )

Definition at line 544 of file eventmgr.c.

References UnhookAllInterruptVectorsHook().

Referenced by UnhookAllInterruptVectorsHook().

◆ UnhookInterruptVectorHook()

void UnhookInterruptVectorHook ( short vector)

Definition at line 537 of file eventmgr.c.

References UnhookInterruptVectorHook().

Referenced by UnhookInterruptVectorHook().

◆ Vector_magnitude()

◆ VideoReleaseHook()

void VideoReleaseHook ( void )

Definition at line 2003 of file eventmgr.c.

References VideoReleaseHook().

Referenced by DosMemmove(), and VideoReleaseHook().

◆ WaitForFrameTick()

void WaitForFrameTick ( void )

◆ WaitForVerticalBlankThunk()

Variable Documentation

◆ g_105_nEmsIsrBusyValue

short g_105_nEmsIsrBusyValue

Definition at line 2528 of file eventmgr.c.

Referenced by SoundBlasterEndOfInterrupt().

◆ g_10_abUnusedEventSpace

unsigned char g_10_abUnusedEventSpace[8]

Definition at line 2535 of file eventmgr.c.

◆ g_10_nSavedPointerY

int g_10_nSavedPointerY

Definition at line 2509 of file eventmgr.c.

Referenced by CaptureMouseCursorBackground(), and RestoreMouseCursorBackground().

◆ g_11_anPlacedObjectDepths

int g_11_anPlacedObjectDepths[SPACE_OBJECT_COUNT]

Definition at line 2511 of file eventmgr.c.

Referenced by BuildObjectDepthOrder().

◆ g_11_nViewportLeftOrigin

short g_11_nViewportLeftOrigin

Definition at line 2548 of file eventmgr.c.

Referenced by set_up_screen_viewport().

◆ g_128_abPauseInputState

unsigned char g_128_abPauseInputState[0x100]

Definition at line 2554 of file eventmgr.c.

Referenced by HandleSpaceFlightControls().

◆ g_12_abUnusedLibraryInputData

unsigned char g_12_abUnusedLibraryInputData[16]

Definition at line 2555 of file eventmgr.c.

◆ g_12_wInputDeviceButtonStatus

short g_12_wInputDeviceButtonStatus

Definition at line 2531 of file eventmgr.c.

Referenced by get_player_input(), and HandleFleetOverviewInput().

◆ g_136_abUnusedInputMemoryData

unsigned char g_136_abUnusedInputMemoryData[12]

Definition at line 2562 of file eventmgr.c.

◆ g_138_abUnusedLibraryData

unsigned char g_138_abUnusedLibraryData[4]

Definition at line 2569 of file eventmgr.c.

◆ g_138_nCursorDirtyRightValue

int g_138_nCursorDirtyRightValue

◆ g_13_abPreviousPauseKeyStatuses

unsigned char g_13_abPreviousPauseKeyStatuses[0x100]

Definition at line 2556 of file eventmgr.c.

Referenced by HandleSpaceFlightControls().

◆ g_13_abUnusedLibrarySpaceData

unsigned char g_13_abUnusedLibrarySpaceData[4]

Definition at line 2513 of file eventmgr.c.

◆ g_13_pActiveCutscenePixelsAddress

unsigned char* g_13_pActiveCutscenePixelsAddress

◆ g_146_nInputCursorDirtyTop

int g_146_nInputCursorDirtyTop

◆ g_148_nPointerDirtyLeft

int g_148_nPointerDirtyLeft

◆ g_14_nCurrentGraphicsModeDetectedValue

short g_14_nCurrentGraphicsModeDetectedValue

Definition at line 2498 of file eventmgr.c.

Referenced by LoadOriginFxDrivers(), and LogMemoryUsage().

◆ g_15_nMouseRenderY

int g_15_nMouseRenderY

◆ g_15_nPointerDirtyBottom

int g_15_nPointerDirtyBottom

◆ g_15_nStoredScreenViewCentreX

◆ g_15_pScreenViewportGeometry

const ScreenViewportGeometry* volatile g_15_pScreenViewportGeometry

Definition at line 2519 of file eventmgr.c.

Referenced by dump_buffer_to_screen(), and set_up_screen_viewport().

◆ g_16_stEventQueuePointerData

◆ g_176_pfnCurrentInputPump

void(*) g_176_pfnCurrentInputPump(void) ( void )

Definition at line 2526 of file eventmgr.c.

Referenced by ConfigureInputPump(), PumpWindowMessages(), WaitForInputKey(), and WinMain().

◆ g_17_abUnusedLibraryInputBuffer

unsigned char g_17_abUnusedLibraryInputBuffer[8]

Definition at line 2508 of file eventmgr.c.

◆ g_18_abUnreferencedInputBuffer

unsigned char g_18_abUnreferencedInputBuffer[4]

Definition at line 2496 of file eventmgr.c.

◆ g_18_bEventManagerInitializationState

short g_18_bEventManagerInitializationState

Definition at line 2495 of file eventmgr.c.

Referenced by EMShutDown(), InitializeInputManagerMemory(), and ShutdownEventManager().

◆ g_18_nInterfaceEventMode

◆ g_18_pEventManager

◆ g_196_nInputTimerTicks

◆ g_19_bStoredHighMemoryEnabled

◆ g_1_abUnreferencedInputData

unsigned char g_1_abUnreferencedInputData[4]

Definition at line 2539 of file eventmgr.c.

◆ g_1_cStoredViewDisplayModeValue

◆ g_26_abUnusedInputStorage1

unsigned char g_26_abUnusedInputStorage1[4]

Definition at line 2545 of file eventmgr.c.

◆ g_26_abUnusedInputStorage2

unsigned char g_26_abUnusedInputStorage2[4]

Definition at line 2546 of file eventmgr.c.

◆ g_26_bMouseCursorEnabled

unsigned char g_26_bMouseCursorEnabled

◆ g_26_bPointerDirtyValue

int g_26_bPointerDirtyValue

◆ g_26_pLibraryCurrentLastPacketAllocation

void* g_26_pLibraryCurrentLastPacketAllocation

Definition at line 2504 of file eventmgr.c.

Referenced by PacketLoad().

◆ g_29_pCurrentTextContext

◆ g_2_bIgnoreNextCursorMoveFlag

int g_2_bIgnoreNextCursorMoveFlag

Definition at line 2534 of file eventmgr.c.

Referenced by KeyboardMousePump(), and MainWindowProc().

◆ g_36_pfnRenderSceneFontCharacterHandler

void(*) g_36_pfnRenderSceneFontCharacterHandler(char character) ( char character)

Definition at line 2567 of file eventmgr.c.

Referenced by InitializeCinematicTextRenderer().

◆ g_37_abUnusedEventManagerBuffer

unsigned char g_37_abUnusedEventManagerBuffer[272]

Definition at line 2551 of file eventmgr.c.

◆ g_37_nViewCenterY

◆ g_37_stPersonnelMousePointerState

◆ g_388_abUnusedLibraryBuffer1

unsigned char g_388_abUnusedLibraryBuffer1[4]

Definition at line 2564 of file eventmgr.c.

◆ g_38_abUnusedLibraryInputBufferData

unsigned char g_38_abUnusedLibraryInputBufferData[4]

Definition at line 2532 of file eventmgr.c.

◆ g_39_abUnusedInputSpace2

unsigned char g_39_abUnusedInputSpace2[12]

Definition at line 2527 of file eventmgr.c.

◆ g_39_pCurrentCampaignDataOffset

unsigned char* g_39_pCurrentCampaignDataOffset

Definition at line 2492 of file eventmgr.c.

Referenced by RunCampaignGameLoop().

◆ g_3_abUnusedLibraryBytes

unsigned char g_3_abUnusedLibraryBytes[4]

Definition at line 2503 of file eventmgr.c.

◆ g_3_anCurrentInputEventEntryAllocation

int g_3_anCurrentInputEventEntryAllocation[0x100]

Definition at line 2557 of file eventmgr.c.

Referenced by AllocateInputEvent(), and ReleaseInputEvent().

◆ g_3_nEventClockScaleValue

int g_3_nEventClockScaleValue

Definition at line 2565 of file eventmgr.c.

Referenced by UpdateInputDeviceTransitions().

◆ g_3_pfnRenderSceneTextStringHandler

void(*) g_3_pfnRenderSceneTextStringHandler(char *text) ( char * text)

Definition at line 2560 of file eventmgr.c.

Referenced by InitializeCinematicTextRenderer().

◆ g_49_nViewportOffsetY

short g_49_nViewportOffsetY

◆ g_4_abUnreferencedEventStorage

unsigned char g_4_abUnreferencedEventStorage[2]

Definition at line 2494 of file eventmgr.c.

◆ g_4_abUnusedEventStorage

unsigned char g_4_abUnusedEventStorage[8]

Definition at line 2549 of file eventmgr.c.

◆ g_4_nCapturedInputCursorX

int g_4_nCapturedInputCursorX

Definition at line 2510 of file eventmgr.c.

Referenced by CaptureMouseCursorBackground(), and RestoreMouseCursorBackground().

◆ g_4_nDrawnCursorX

int g_4_nDrawnCursorX

◆ g_56_abUnusedEventBuffer

unsigned char g_56_abUnusedEventBuffer[6]

Definition at line 2523 of file eventmgr.c.

◆ g_56_anStoredObjectSortedIndicesData

int g_56_anStoredObjectSortedIndicesData[SPACE_OBJECT_COUNT]

Definition at line 2520 of file eventmgr.c.

Referenced by BuildObjectDepthOrder(), and draw_sorted_objects_to_buffer().

◆ g_58_abUnreferencedInputStorage1

unsigned char g_58_abUnreferencedInputStorage1[8]

Definition at line 2512 of file eventmgr.c.

◆ g_59_abUnusedLibraryBuffer2

unsigned char g_59_abUnusedLibraryBuffer2[4]

Definition at line 2568 of file eventmgr.c.

◆ g_59_pfnEventShutdownCallback

void(*) g_59_pfnEventShutdownCallback(void) ( void )

Definition at line 2558 of file eventmgr.c.

Referenced by EMStartUp().

◆ g_5_abUnreferencedInputStorage2

unsigned char g_5_abUnreferencedInputStorage2[4]

Definition at line 2521 of file eventmgr.c.

◆ g_5_abUnusedInputSpace1

unsigned char g_5_abUnusedInputSpace1[2]

Definition at line 2497 of file eventmgr.c.

◆ g_5_nFrameTimerWaitTicksValue

volatile int g_5_nFrameTimerWaitTicksValue

◆ g_68_abUnusedInputSpace3

unsigned char g_68_abUnusedInputSpace3[16]

Definition at line 2529 of file eventmgr.c.

◆ g_6_bCampaignFlightRunning

signed char g_6_bCampaignFlightRunning

Definition at line 2530 of file eventmgr.c.

Referenced by RunCampaignGameLoop().

◆ g_6_bCurrentInputCursorBackgroundCapturedState

int g_6_bCurrentInputCursorBackgroundCapturedState

◆ g_6_stPersonnelMouseData

◆ g_6_wQueuedButtonsState

short g_6_wQueuedButtonsState

Definition at line 2499 of file eventmgr.c.

Referenced by HandleFleetOverviewInput(), and player_input().

◆ g_77_abKeyboardEventStates

unsigned char g_77_abKeyboardEventStates[0x80]

◆ g_86_abUnreferencedEventData

unsigned char g_86_abUnreferencedEventData[8]

Definition at line 2566 of file eventmgr.c.

◆ g_86_nCurrentInputTickInterval

short g_86_nCurrentInputTickInterval

Definition at line 2536 of file eventmgr.c.

Referenced by EMStartUp().

◆ g_88_nEventRepeatDelayState

unsigned char g_88_nEventRepeatDelayState

◆ g_8_abUnusedInputSystemBytes

unsigned char g_8_abUnusedInputSystemBytes[4]

Definition at line 2533 of file eventmgr.c.

◆ g_96_nHighMemoryInitValue

short g_96_nHighMemoryInitValue

Definition at line 2514 of file eventmgr.c.

Referenced by EnableHighMemoryResources().

◆ g_97_abUnusedInputSystemBuffer

unsigned char g_97_abUnusedInputSystemBuffer[8]

Definition at line 2517 of file eventmgr.c.

◆ g_9_abUnusedInputData

unsigned char g_9_abUnusedInputData[16]

Definition at line 2491 of file eventmgr.c.

◆ g_9_abUnusedLibrarySpace

unsigned char g_9_abUnusedLibrarySpace[260]

Definition at line 2559 of file eventmgr.c.

◆ g_9_bCinematicSpriteTextEnableStatus

signed char g_9_bCinematicSpriteTextEnableStatus

◆ g_9_nStoredHighMemoryResourceSetupWord

short g_9_nStoredHighMemoryResourceSetupWord

Definition at line 2540 of file eventmgr.c.

Referenced by EnableHighMemoryResources().

◆ g_acDirectionShapeFlip

signed char g_acDirectionShapeFlip[ DIRECTION_VIEW_COUNT *DIRECTION_SHAPE_TABLE_COUNT]
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3,
2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 2,
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0
}

Definition at line 2462 of file eventmgr.c.

Referenced by get_right_shape().

◆ g_acDirectionShapeFrame

signed char g_acDirectionShapeFrame[ DIRECTION_VIEW_COUNT *DIRECTION_SHAPE_TABLE_COUNT]
Initial value:
= {
0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2,
14, 13, 12, 11, 10, 9, 8, 9, 10, 11, 12, 13,
15, 16, 17, 18, 19, 20, 21, 20, 19, 18, 17, 16,
28, 27, 26, 25, 24, 23, 22, 23, 24, 25, 26, 27,
29, 30, 31, 32, 33, 34, 35, 34, 33, 32, 31, 30,
36,
0, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2,
14, 13, 12, 11, 10, 9, 8, 9, 10, 11, 12, 13,
15, 16, 17, 18, 19, 20, 21, 20, 19, 18, 17, 16,
14, 13, 12, 11, 10, 9, 8, 9, 10, 11, 12, 13,
1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 0,
0, 1, 2, 3, 1, 3, 2, 1, 2, 3, 1, 3, 2,
4, 5, 6, 4, 6, 5, 4, 5, 6, 4, 6, 5,
7, 8, 9, 7, 9, 8, 7, 8, 9, 7, 9, 8,
10, 11, 12, 10, 12, 11, 10, 11, 12, 10, 12, 11,
13, 14, 15, 13, 15, 14, 13, 14, 15, 13, 15, 14, 16
}

Definition at line 2443 of file eventmgr.c.

Referenced by get_right_shape().

◆ g_aScreenViewportGeometry

ScreenViewportGeometry g_aScreenViewportGeometry[7]
Initial value:
= {
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 320, 128, 0, 24, 0, 24, -24576, -1 },
{ 320, 200, 0, 0, 0, 0, -1536, -1 },
{ 0, 0, 0, 0, 0, 0, 0, 0 }
}

Definition at line 2434 of file eventmgr.c.

Referenced by set_up_screen_viewport().

◆ g_bSceneEscapeRequested

◆ g_cKeypadMouseSpeedValue

signed char g_cKeypadMouseSpeedValue

Definition at line 2524 of file eventmgr.c.

Referenced by EMStartUp(), and KeyboardMousePump().

◆ g_nInputDoubleClickDeadline

int g_nInputDoubleClickDeadline = 0

Definition at line 2424 of file eventmgr.c.

Referenced by QueueInputEvent().

◆ g_nInputEventPoolInitialized

int g_nInputEventPoolInitialized = 0

Definition at line 2423 of file eventmgr.c.

Referenced by AllocateInputEvent().

◆ g_nInputPollPeriod

short g_nInputPollPeriod = 0

Definition at line 2482 of file eventmgr.c.

Referenced by RunLoadedCutscene(), and ServiceInputDevices().

◆ g_nMouseCursorDrawDepth

◆ g_nNextInputPollTick

int g_nNextInputPollTick = 0

Definition at line 2481 of file eventmgr.c.

Referenced by ServiceInputDevices().

◆ g_nNextInputQueueFlushTick

int g_nNextInputQueueFlushTick = 0

◆ g_nPreviousPrimaryButton

int g_nPreviousPrimaryButton = 0

Definition at line 2425 of file eventmgr.c.

Referenced by QueueInputEvent().

◆ g_nPreviousSecondaryButton

int g_nPreviousSecondaryButton = 0

Definition at line 2426 of file eventmgr.c.

Referenced by QueueInputEvent().

◆ g_nScreenHeight

◆ g_nScreenWidth

◆ g_nUnusedEventWord1

int g_nUnusedEventWord1 = 0

Definition at line 2432 of file eventmgr.c.

◆ g_nUnusedEventWord2

int g_nUnusedEventWord2 = 0

Definition at line 2433 of file eventmgr.c.

◆ g_pDrawnInputCursorShape

unsigned char* g_pDrawnInputCursorShape = 0

◆ g_pInputEventHead

◆ g_pInputEventTail

InputEvent* g_pInputEventTail = 0