|
Wing Commander II
Reconstructed Win32 source (1996)
|
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 |
Win32 library port: random, fixed-point math, text, strings and events.
Definition in file eventmgr.c.
| #define EVENTMGR_C |
Definition at line 7 of file eventmgr.c.
Definition at line 2399 of file eventmgr.c.
References AllocateApplicationScratchBuffer(), AllocateTaggedMemory(), g_37_stPersonnelMousePointerState, and MouseCursorState::scratchBuffer.
Referenced by AllocateApplicationScratchBuffer(), close_behind(), and WinMain().
| void * AllocateDefaultMemory | ( | unsigned int | size | ) |
Definition at line 1465 of file eventmgr.c.
References AllocateDefaultMemory(), and AllocateTaggedMemory().
Referenced by AllocateDefaultMemory(), DosMemmove(), and InitializeHighMemoryGraphicsBuffers().
| void * AllocateEmsBlock | ( | unsigned int | size | ) |
Definition at line 1536 of file eventmgr.c.
References AllocateEmsBlock().
Referenced by AllocateEmsBlock().
| InputEvent * AllocateInputEvent | ( | void | ) |
Definition at line 616 of file eventmgr.c.
References AllocateInputEvent(), g_3_aInputEventArray, g_3_anCurrentInputEventEntryAllocation, and g_nInputEventPoolInitialized.
Referenced by AllocateInputEvent(), DosMemmove(), and QueueInputEvent().
| void * AllocateNearMemory | ( | short | size | ) |
Definition at line 1949 of file eventmgr.c.
References AllocateNearMemory(), and AllocateTaggedMemory().
Referenced by AllocateNearMemory().
| void * AllocateZeroedRecords | ( | int | count, |
| short | elementSize, | ||
| short | flags ) |
Definition at line 1437 of file eventmgr.c.
References AllocateTaggedMemory(), and AllocateZeroedRecords().
Referenced by AllocateScenePointerTable(), AllocateZeroedRecords(), and DosMemmove().
| void AppendTextCharacter | ( | char | character | ) |
Definition at line 375 of file eventmgr.c.
References AppendTextCharacter(), g_29_pCurrentTextContext, and TextContext::textCursor.
Referenced by AppendFormattedText(), AppendTextCharacter(), DrawNavTextLine(), FormatTextBufferFromStart(), and intelligence_events().
| void ApplyPackedMousePosition | ( | ShortPoint | point | ) |
Definition at line 1386 of file eventmgr.c.
References ApplyPackedMousePosition(), g_16_stEventQueuePointerData, SetInputCursorHostPosition(), QueuedMouseState::x, ShortPoint::x, QueuedMouseState::y, and ShortPoint::y.
Referenced by ApplyPackedMousePosition(), and DosMemmove().
Definition at line 222 of file eventmgr.c.
References ApplySpacePaletteModeHook().
Referenced by ApplySpacePaletteModeHook(), ConfigureDefaultSpacePalette(), and DrawTextAt().
| short ArcCos | ( | int | value | ) |
Definition at line 116 of file eventmgr.c.
References ArcCos().
Referenced by ArcCos(), get_right_shape(), intelligence_events(), match_roll_orientation(), rectangular_to_spherical(), and set_background_objects_rotation().
| short ArcSin | ( | int | value | ) |
Definition at line 102 of file eventmgr.c.
References ArcSin().
Referenced by ArcSin(), intelligence_events(), and set_ship_rotation_goals().
Definition at line 1643 of file eventmgr.c.
References BuildObjectDepthOrder(), g_11_anPlacedObjectDepths, g_56_anStoredObjectSortedIndicesData, g_asObjectDistance, g_asObjectScreenX, and SPACE_OBJECT_COUNT.
Referenced by BuildObjectDepthOrder(), DosMemmove(), and DrawSpaceSceneFrame().
Definition at line 1921 of file eventmgr.c.
References CalibrateDelayHook().
Referenced by CalibrateDelayHook().
Definition at line 1063 of file eventmgr.c.
References CaptureMouseCursorBackground(), CaptureSpriteBackground(), QueuedMouseState::frame, g_101_stScrViewInfo, g_10_nSavedPointerY, g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_16_stEventQueuePointerData, g_26_bPointerDirtyValue, g_4_nCapturedInputCursorX, g_6_bCurrentInputCursorBackgroundCapturedState, g_abInputCursorBehind, g_nMouseCursorDrawDepth, QueuedMouseState::shape, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by CaptureMouseCursorBackground(), DIBslamReal(), DosMemmove(), and RefreshMouseCursorDisplay().
Definition at line 1057 of file eventmgr.c.
References CheckCursor().
Referenced by CheckCursor(), and DosMemmove().
| short CheckEmsPointer | ( | void * | pointer | ) |
Definition at line 1550 of file eventmgr.c.
References CheckEmsPointer().
Referenced by CheckEmsPointer().
Definition at line 1606 of file eventmgr.c.
References ClearDebugPauseFlags(), ClearInputKeyState(), and g_77_abKeyboardEventStates.
Referenced by ClearInputKeyState(), and DosMemmove().
Definition at line 1593 of file eventmgr.c.
References ClearDebugPauseFlags(), ClearInputKeyStatePreservingModifiers(), and g_77_abKeyboardEventStates.
Referenced by ClearInputKeyStatePreservingModifiers(), DosMemmove(), and FlushBiosKeys().
Definition at line 2100 of file eventmgr.c.
References ClearInputPump(), and ConfigureInputPump().
Referenced by ClearInputPump(), DosMemmove(), InitializeSpaceFlightInput(), PromptToContinueCampaign(), and RunCampaignGameLoop().
Definition at line 2112 of file eventmgr.c.
References ConfigureInputPump(), and g_176_pfnCurrentInputPump.
Referenced by AcknowledgeModalMessage(), ClearInputPump(), ConfigureInputPump(), DosMemmove(), InflightComputer(), InitializeSpaceFlightInput(), LoadOriginFxDrivers(), RunSpaceFlight(), SetMenuInputPump(), ShowPlayerEjectionSequence(), and WaitForInputKey().
| char * CopyStringAndReturnEnd | ( | char * | destination, |
| const char * | source ) |
Definition at line 471 of file eventmgr.c.
References CopyStringAndReturnEnd().
Referenced by CopyStringAndReturnEnd(), ExpandCutsceneText(), and intelligence_events().
| long CosFixed | ( | short | degrees | ) |
Definition at line 91 of file eventmgr.c.
References CosFixed(), and DEG2RAD.
Referenced by CosFixed(), draw_target_box(), intelligence_events(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), and rotate_about_k().
| short DetectTandyKeyboard | ( | void | ) |
Definition at line 2016 of file eventmgr.c.
References DetectTandyKeyboard().
Referenced by DetectTandyKeyboard().
| void DIBsetPalette | ( | int | index, |
| short * | rgb ) |
References DIBsetPalette().
Definition at line 1327 of file eventmgr.c.
References DIBupdate(), DisableMouseCursorDrawing(), QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), QueuedMouseState::shape, and QueuedMouseState::viewport.
Referenced by BarracksScreen(), close_behind(), DisableMouseCursorDrawing(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), InflightComputer(), InitializeCampaignChalkboardScreen(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), PollMenuInputDevices(), PromptToContinueCampaign(), RefreshCampaignChalkboardScreen(), RunCampaignChalkboardMenu(), RunCampaignContinuePromptLoop(), RunCampaignScript(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and ShowConfedNavScan().
| long DivideFixed | ( | int | numerator, |
| int | denominator ) |
Definition at line 64 of file eventmgr.c.
References DivideFixed().
Referenced by accelerate_and_move_object(), apply_force_to_object(), divide_vector(), DivideFixed(), draw_nav_pointer(), GetShipAccelerationRate(), intelligence_events(), NormalizeFixedVector(), object_collision(), real_crash_time(), rectangular_to_spherical(), rotational_acceleration(), set_ship_rotation_goals(), transform_objects_to_your_view(), and UpdateTargetLeadIndicator().
| unsigned int DosFarPtrToNear | ( | void * | v | ) |
Definition at line 441 of file eventmgr.c.
References DosFarPtrToNear().
Referenced by CopyHugeMemoryOverlapSafe(), DosFarPtrToNear(), FreeNearHeapBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), intelligence_events(), PopCutsceneScriptValue(), and PushCutsceneScriptValue().
Definition at line 485 of file eventmgr.c.
References DosMemmove().
Definition at line 492 of file eventmgr.c.
References DosMemset().
Referenced by DosMemmove(), DosMemset(), ExpandCutsceneText(), and RunCutsceneScript().
| void * DosNearPtrToFar | ( | unsigned int | v | ) |
Definition at line 447 of file eventmgr.c.
References DosNearPtrToFar().
Referenced by AllocateNearHeapBlockByFlags(), AllocateNearHeapBlockFromEnd(), CopyHugeMemoryOverlapSafe(), DosNearPtrToFar(), FreeNearHeapBlock(), GetAvailableMainMemory(), GetLargestMainMemoryBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), intelligence_events(), MergeAdjacentNearHeapBlocks(), PurgeNearHeapBlocks(), ReleaseNearHeapBlock(), and ShutdownNearHeap().
| char * DosStrchr | ( | const char * | s, |
| short | c ) |
Definition at line 459 of file eventmgr.c.
References DosStrchr().
Referenced by DecodeSceneSymbolChunk(), DosStrcat(), DosStrchr(), ExpandCommMessageTokens(), FillGraphicSuffix(), FindSceneHotspotAtPosition(), GetPackedStringByIndex(), intelligence_events(), ParseHexNumber(), RewriteCutsceneMusicExtensionForDriver(), RewriteCutsceneMusicExtensionForRetry(), RewriteDiskFileGraphicsExtensions(), and RewritePacketFilenameForInstalledData().
| char * DosStrcpy | ( | char * | dst, |
| const char * | src ) |
Definition at line 465 of file eventmgr.c.
References DosStrcpy().
Referenced by AdvanceSceneFlicStream(), DosStrcat(), DosStrcpy(), intelligence_events(), LoadCachedCutsceneResource(), ParseNumber(), print_message_text(), ReadTextInput(), ShowCentredPrompt(), ShowComponentHitHudMessage(), and ShowOnScreenMessage().
| short DosStrlen | ( | const char * | s | ) |
Definition at line 479 of file eventmgr.c.
References DosStrlen().
Referenced by AreCutsceneResourceNamesEqual(), DosStrlen(), EraseLastTextInputCharacter(), ExpandCommMessageTokens(), intelligence_events(), ParseHexNumber(), ParseNumber(), and ReadTextInput().
| char * DosStrrchr | ( | char * | s, |
| short | c ) |
Definition at line 453 of file eventmgr.c.
References DosStrrchr().
Referenced by DosStrrchr(), and intelligence_events().
Definition at line 1700 of file eventmgr.c.
References draw_sorted_objects_to_buffer(), DrawSpriteDefault(), DrawSpriteScaled(), g_15_nStoredScreenViewCentreX, g_27_stViewScratchInfo, g_37_nViewCenterY, g_56_anStoredObjectSortedIndicesData, g_aeObjectClass, g_apObjectShape, g_asObjectDrawX, g_asObjectDrawY, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectScreenX, g_asObjectScreenY, g_asObjectType, g_asObjectViewFrame, g_nNavPointerObject, g_pConstellationSprite, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, and SPACE_OBJECT_COUNT.
Referenced by DosMemmove(), draw_sorted_objects_to_buffer(), and DrawSpaceSceneFrame().
Definition at line 1099 of file eventmgr.c.
References DrawMouseCursor(), DrawSpriteDefault(), QueuedMouseState::frame, g_101_stScrViewInfo, g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_16_stEventQueuePointerData, g_26_bPointerDirtyValue, g_nMouseCursorDrawDepth, QueuedMouseState::shape, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DIBslamReal(), DosMemmove(), DrawMouseCursor(), and RefreshMouseCursorDisplay().
| void DrawTextCharacter | ( | char | character | ) |
Definition at line 348 of file eventmgr.c.
References TextContext::cursorX, TextContext::cursorY, DrawFontGlyph(), DrawTextCharacter(), TextContext::font, g_29_pCurrentTextContext, Viewport::left, and TextContext::viewport.
Referenced by DrawFormattedText(), DrawTextCharacter(), DrawTextString(), and intelligence_events().
| void DrawTextString | ( | const char * | text | ) |
Definition at line 262 of file eventmgr.c.
References TextContext::alignment, ClearDebugPauseFlags(), TextContext::cursorX, TextContext::cursorY, DrawTextCharacter(), DrawTextString(), TextContext::font, g_29_pCurrentTextContext, Viewport::left, PumpMessagesDuringWait(), Viewport::right, SystemDebugPrintf(), and TextContext::viewport.
Referenced by DrawNavTextLine(), DrawTextAt(), DrawTextString(), FormatTextTokens(), and intelligence_events().
Definition at line 1449 of file eventmgr.c.
References DumpFarHeapHook().
Referenced by DumpFarHeapHook().
Definition at line 1890 of file eventmgr.c.
References DumpVideoPageMapHook().
Referenced by DumpVideoPageMapHook().
| short EmsRestoreMapping | ( | void | ) |
Definition at line 1578 of file eventmgr.c.
References EmsRestoreMapping().
Referenced by DosMemmove(), EmsRestoreMapping(), and SoundBlasterEndOfInterrupt().
| short EmsSaveMapping | ( | void | ) |
Definition at line 1571 of file eventmgr.c.
References EmsSaveMapping().
Referenced by DosMemmove(), EmsSaveMapping(), and SoundBlasterDspInterrupt().
| unsigned short EnableHighMemoryResources | ( | void | ) |
Definition at line 1456 of file eventmgr.c.
References EnableHighMemoryResources(), g_19_bStoredHighMemoryEnabled, g_96_nHighMemoryInitValue, and g_9_nStoredHighMemoryResourceSetupWord.
Referenced by DosMemmove(), EnableHighMemoryResources(), and IsSoundHardwarePresent().
Definition at line 1254 of file eventmgr.c.
References CaptureSpriteBackground(), DIBupdate(), DrawSpriteDefault(), EnableMouseCursorDrawing(), QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), QueuedMouseState::shape, QueuedMouseState::shapeChanged, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by BarracksScreen(), close_behind(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), EnableMouseCursorDrawing(), HighlightPersonnelFileSlot(), HighlightTransferredPilot(), InflightComputer(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), PollMenuInputDevices(), PromptToContinueCampaign(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and ShowConfedNavScan().
Definition at line 2009 of file eventmgr.c.
References ExitCleanupHook().
Referenced by DosMemmove(), and ExitCleanupHook().
Definition at line 2144 of file eventmgr.c.
References FinalizeInputDriverHook().
Referenced by DosMemmove(), EMStartUp(), and FinalizeInputDriverHook().
Definition at line 1896 of file eventmgr.c.
References FinalizeInputManagerHook().
Referenced by DosMemmove(), FinalizeInputManagerHook(), and LogMemoryUsage().
| InputEventState * FindQueuedInputEvent | ( | int | type | ) |
Definition at line 969 of file eventmgr.c.
References InputEvent::field_14, InputEvent::field_18, FindQueuedInputEvent(), g_16_stEventQueuePointerData, g_196_nInputTimerTicks, g_1_stFoundInputEvent, g_nNextInputQueueFlushTick, g_pInputEventHead, InputEvent::modifiers, InputEventState::modifiers, InputEvent::primaryButton, InputEvent::secondaryButton, InputEvent::status, InputEventState::status, InputEventState::timestamp, InputEvent::type, InputEventState::type, InputEventState::value, InputEvent::x, InputEventState::x, QueuedMouseState::x, InputEvent::y, InputEventState::y, and QueuedMouseState::y.
Referenced by DosMemmove(), FindQueuedInputEvent(), IsInputEventQueued(), PollSceneHotspotInput(), RunCutsceneScript(), UpdateMap(), WaitForCutsceneInputEvent(), and WaitForInputKey().
Definition at line 1586 of file eventmgr.c.
References ClearInputKeyStatePreservingModifiers(), and FlushBiosKeys().
Referenced by FlushBiosKeys().
Definition at line 1014 of file eventmgr.c.
References FlushInputEvents(), g_196_nInputTimerTicks, g_nNextInputQueueFlushTick, and ReleaseInputEventQueue().
Referenced by DosMemmove(), FlushInputEvents(), FlushPendingInputEvents(), GetNextInputEvent(), HandleSpaceFlightControls(), PollCampaignChalkboardMenu(), PollMenuInputDevices(), RunCutsceneScript(), RunPilotDatabaseMenu(), RunSpaceFlight(), RunTitleScreen(), ServiceInputDevices(), ShowOnScreenMessage(), and WaitForInputKey().
Definition at line 2157 of file eventmgr.c.
References FlushInputEvents(), and FlushPendingInputEvents().
Referenced by AcknowledgeModalMessage(), DosMemmove(), FlushPendingInputEvents(), and RunCutsceneScript().
Definition at line 1529 of file eventmgr.c.
References FormatEmsHeapHook().
Referenced by FormatEmsHeapHook().
Definition at line 1479 of file eventmgr.c.
References FreeDefaultMemory(), and ReleasePacketHandle().
Referenced by FreeDefaultMemory().
Definition at line 1557 of file eventmgr.c.
References FreeEmsBlockHook().
Referenced by FreeEmsBlockHook().
Definition at line 1955 of file eventmgr.c.
References FreeIfNotNull().
Referenced by DosMemmove(), FreeIfNotNull(), InitializeNearHeap(), and ShutdownNearHeap().
Definition at line 1883 of file eventmgr.c.
References FreeVideoPagesHook().
Referenced by FreeVideoPagesHook().
| unsigned int GetAvailableFarMemory | ( | void | ) |
Definition at line 1509 of file eventmgr.c.
References GetAvailableFarMemory().
Referenced by DosMemmove(), DrawCinematicMemoryStatus(), ejection_sequence(), GetAvailableFarMemory(), GetAvailableFarMemoryByType(), ReportPacketLoadError(), RunCampaignScript(), ShowMemoryStatusDebug(), and WriteDetailedMemoryStateReport().
| short GetCurrentDiskDriveHook | ( | void | ) |
Definition at line 1990 of file eventmgr.c.
References GetCurrentDiskDriveHook().
Referenced by DosMemmove(), and GetCurrentDiskDriveHook().
| unsigned int GetEmsTotalFree | ( | void | ) |
Definition at line 1543 of file eventmgr.c.
References GetEmsTotalFree().
Referenced by GetEmsTotalFree().
| short GetFontCharWidth | ( | char | i | ) |
Definition at line 216 of file eventmgr.c.
References TextContext::font, g_29_pCurrentTextContext, and GetFontCharWidth().
Referenced by ClearTextInputCharacter(), EraseLastTextInputCharacter(), GetFontCharWidth(), intelligence_events(), and MeasureTextPixelWidthClamped().
| unsigned char * GetInputCursorShape | ( | void | ) |
Definition at line 2413 of file eventmgr.c.
References g_16_stEventQueuePointerData, GetInputCursorShape(), and QueuedMouseState::shape.
Referenced by close_behind(), GetInputCursorShape(), overlay_head_up_display(), and RestoreTransientCockpitGraphics().
| unsigned int GetLargestFreeMemoryBlock | ( | void | ) |
Definition at line 1515 of file eventmgr.c.
References GetLargestFreeMemoryBlock().
Referenced by DosMemmove(), ejection_sequence(), GetLargestFreeMemoryBlock(), GetLargestFreeMemoryBlockByType(), RunCampaignScript(), and WriteDetailedMemoryStateReport().
| void GetMouseHomePosition | ( | ShortPoint * | position | ) |
Definition at line 1397 of file eventmgr.c.
References g_16_stEventQueuePointerData, GetMouseHomePosition(), QueuedMouseState::x, ShortPoint::x, QueuedMouseState::y, and ShortPoint::y.
Referenced by GetMouseHomePosition().
| long GetNamedPacketSize | ( | const char * | filename, |
| short | section ) |
Definition at line 2164 of file eventmgr.c.
References GetNamedPacketSize(), and GetPacketSize().
Referenced by AppendPacketLoadDebugLog(), GetNamedPacketSize(), InitializeCockpitResources(), LoadAndPlaySpeechPacket(), LoadCachedCutsceneResource(), LoadCutsceneSpeechSlot(), LoadPacketAllocated(), LoadPacketResourceList(), real_vid_transmit(), ReportPacketLoadError(), and UpdateShipTurretGuns().
| short GetNavRangeSentinel | ( | void | ) |
Definition at line 1908 of file eventmgr.c.
References GetNavRangeSentinel().
Referenced by DosMemmove(), GetNavRangeSentinel(), and InitializeNearHeap().
| int GetNextInputEvent | ( | InputEventState * | state | ) |
Definition at line 800 of file eventmgr.c.
References Viewport::bottom, InputEvent::field_14, InputEvent::field_18, FlushInputEvents(), g_16_stEventQueuePointerData, g_196_nInputTimerTicks, g_nNextInputQueueFlushTick, g_pInputEventHead, GetNextInputEvent(), Viewport::left, InputEvent::modifiers, InputEventState::modifiers, InputEvent::primaryButton, QueuedMouseState::primaryButton, ReleaseInputEventQueue(), RemoveInputEvent(), Viewport::right, InputEvent::secondaryButton, QueuedMouseState::secondaryButton, InputEvent::status, InputEventState::status, Viewport::top, InputEvent::type, InputEvent::value, InputEventState::value, QueuedMouseState::viewport, InputEvent::x, InputEventState::x, QueuedMouseState::x, InputEvent::y, InputEventState::y, and QueuedMouseState::y.
Referenced by DosMemmove(), GetNextInputEvent(), HandleFleetOverviewInput(), player_input(), PollInputEvent(), PollPersonnelMenuInput(), PollSceneHotspotInput(), and ProcessCannedSceneInput().
| short GetOriginalFreeMemory | ( | void | ) |
Definition at line 1914 of file eventmgr.c.
References GetOriginalFreeMemory().
Referenced by AddCutsceneMusicNode(), AddCutsceneSoundEffect(), DosMemmove(), GetOriginalFreeMemory(), InitializeCutsceneRuntimeResources(), ReleaseCutsceneMusicNodes(), ReleaseCutsceneSoundEffects(), RunLoadedCutscene(), ShowMemoryStatusDebug(), and WriteDetailedMemoryStateReport().
| unsigned short GetRandomWord | ( | void | ) |
Definition at line 25 of file eventmgr.c.
References GetRandomWord().
Referenced by GetRandomWord(), and intelligence_events().
| short GetShapeFrameBounds | ( | short * | bounds, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 228 of file eventmgr.c.
References GetShapeFrameBounds().
Referenced by DrawCinematicFontCharacter(), GetShapeFrameBounds(), GetShapeFrameExtent(), intelligence_events(), IsSpriteFrameOverlappingRect(), MeasureCinematicFontCharacterWidth(), and MeasureCinematicFontLineHeight().
| unsigned short GetShutdownErrorCode | ( | unsigned char * | driveState | ) |
Definition at line 1996 of file eventmgr.c.
References GetShutdownErrorCode(), and void().
Referenced by DosMemmove(), and GetShutdownErrorCode().
| int GetSoundHardwareFlag | ( | void | ) |
Definition at line 1471 of file eventmgr.c.
References GetSoundHardwareFlag().
Referenced by DosMemmove(), and GetSoundHardwareFlag().
| unsigned int GetStartupErrorCode | ( | int | vector | ) |
Definition at line 1963 of file eventmgr.c.
References GetStartupErrorCode(), and void().
Referenced by DosMemmove(), and GetStartupErrorCode().
| short GetViewportIntersection | ( | ShortRect * | intersection, |
| const ShortRect * | first, | ||
| const ShortRect * | second ) |
Definition at line 2277 of file eventmgr.c.
References ShortRect::bottom, GetViewportIntersection(), ShortRect::left, MaxShort(), MinShort(), ShortRect::right, and ShortRect::top.
Referenced by CopyTrainSimPilotViewToVdus(), and GetViewportIntersection().
| short HasKeyIntercept | ( | void | ) |
Definition at line 1935 of file eventmgr.c.
References HasKeyIntercept().
Referenced by HasKeyIntercept().
| short HookInterruptVector | ( | short | vector | ) |
Definition at line 530 of file eventmgr.c.
References HookInterruptVector().
Referenced by HookInterruptVector().
Definition at line 1491 of file eventmgr.c.
References IdentityDword().
Referenced by ApplyCannedSceneFrameEvents(), DosMemmove(), FinishCannedScenePlayback(), IdentityDword(), initialize_cockpit(), InitializeCannedSceneFrameIndex(), InitializeHighMemoryGraphicsBuffers(), InitializeSoundBlaster(), PlaySpeechPacketBuffer(), RecordCannedSceneBriefingCharacter(), RecordCannedSceneObjectEvent(), RecordCannedSceneObjectState(), RecordMusicCommandHook(), and SoundBlasterDspInterrupt().
Definition at line 196 of file eventmgr.c.
References IdentityHandle().
Referenced by DecodeSceneResourceChunk(), DecodeSceneStructChunk(), DecodeSceneSymbolChunk(), IdentityHandle(), intelligence_events(), ParseCutsceneContainer(), ReadNextSceneForm(), and SkipCutsceneChunk().
| unsigned int IdentityWord | ( | unsigned int | v | ) |
Definition at line 1497 of file eventmgr.c.
References IdentityWord().
Referenced by DosMemmove(), get_right_shape(), and IdentityWord().
| int InitializeEms | ( | void | ) |
Definition at line 1522 of file eventmgr.c.
References InitializeEms().
Referenced by InitializeEms().
Definition at line 2138 of file eventmgr.c.
References InitializeInputDriverHook().
Referenced by DosMemmove(), EMStartUp(), InitializeInputDriverHook(), and InitializeSpaceFlightInput().
| short InitializeInputManagerMemory | ( | short | eventQueueSize | ) |
Definition at line 512 of file eventmgr.c.
References AllocateTaggedMemory(), g_18_bEventManagerInitializationState, g_18_pEventManager, and InitializeInputManagerMemory().
Referenced by DrawTextAt(), EMStartUp(), and InitializeInputManagerMemory().
| short InitializeMouseCursorDepth | ( | void | ) |
Definition at line 1022 of file eventmgr.c.
References g_nMouseCursorDrawDepth, and InitializeMouseCursorDepth().
Referenced by DosMemmove(), InitializeMouseCursorDepth(), and LoadOriginFxDrivers().
| short InitializeMousePointer | ( | void | ) |
Definition at line 1030 of file eventmgr.c.
References InitializeMousePointer().
Referenced by InitializeMousePointer().
| short InitializePostPaletteState | ( | void | ) |
Definition at line 499 of file eventmgr.c.
References InitializePostPaletteState().
Referenced by DrawTextAt(), InitializePostPaletteState(), and LoadOriginFxDrivers().
Definition at line 2151 of file eventmgr.c.
References InputDeviceShutdownHook().
Referenced by InputDeviceShutdownHook().
Definition at line 1768 of file eventmgr.c.
References DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), g_27_stViewScratchInfo, g_aeObjectClass, g_apObjectShape, g_asObjectDrawX, g_asObjectDrawY, g_asObjectFlip, g_asObjectScreenAngle, g_asObjectScreenScale, g_asObjectType, g_asObjectViewFrame, g_cPrimaryViewBufferColour, g_nNavPointerObject, g_pConstellationSprite, intro_drawbackgroundships(), OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, and SPACE_OBJECT_COUNT.
Referenced by DosMemmove(), and intro_drawbackgroundships().
| int IsEmsPointer | ( | void * | pointer | ) |
Definition at line 1564 of file eventmgr.c.
References IsEmsPointer().
Referenced by IsEmsPointer().
| short IsFrameTickElapsed | ( | void | ) |
Definition at line 1430 of file eventmgr.c.
References g_5_nFrameTimerWaitTicksValue, and IsFrameTickElapsed().
Referenced by DosMemmove(), and IsFrameTickElapsed().
| short IsPointInRect | ( | short | x, |
| short | y, | ||
| const short * | rect ) |
Definition at line 246 of file eventmgr.c.
References IsPointInRect().
Referenced by FindSceneHotspotAtPosition(), intelligence_events(), IsPointInRect(), and SplitPackedPoint().
| short IsSpriteFrameOverlappingRect | ( | const ShortRect * | rectangle, |
| short | x, | ||
| short | y, | ||
| unsigned char * | shape, | ||
| short | frame ) |
Definition at line 2235 of file eventmgr.c.
References ShortRect::bottom, GetShapeFrameBounds(), IsSpriteFrameOverlappingRect(), ShortRect::left, ShortRect::right, and ShortRect::top.
Referenced by build_your_target_list(), IsSpriteFrameOverlappingRect(), overlay_head_up_display(), and UpdateShipTurretGuns().
| short IsVectorWithinRange | ( | FixedVector * | vector, |
| short | range ) |
Definition at line 2023 of file eventmgr.c.
References IsVectorWithinRange(), and Vector_magnitude().
Referenced by check_for_collision(), DosMemmove(), IsPointWithinRange(), IsVectorWithinRange(), room_for_me(), and ships_within_range().
| unsigned int JoystickEdgeHook | ( | int | button | ) |
Definition at line 1941 of file eventmgr.c.
References JoystickEdgeHook(), and void().
Referenced by DosMemmove(), and JoystickEdgeHook().
Definition at line 1622 of file eventmgr.c.
References KeyboardNullHook().
Referenced by KeyboardNullHook().
| short LoadInputCursorShape | ( | const char * | filename, |
| short | section, | ||
| short | flags ) |
Definition at line 2120 of file eventmgr.c.
References InputManagerState::cursorShape, g_16_stEventQueuePointerData, g_18_pEventManager, LoadInputCursorShape(), LoadNamedPacket(), SetInputViewport(), QueuedMouseState::shape, and void().
Referenced by DosMemmove(), EMStartUp(), and LoadInputCursorShape().
| void * LoadNamedPacket | ( | const char * | filename, |
| short | section, | ||
| void * | destination, | ||
| unsigned short | flags, | ||
| void * | decompressionWorkspace, | ||
| int | registerHandle ) |
Definition at line 2170 of file eventmgr.c.
References LoadNamedPacket(), and PacketLoad().
Referenced by AdvanceSceneFlicStream(), BarracksScreen(), FetchDiskPacketRetrying(), initialize_cockpit(), InitializeCockpitResources(), LoadCachedCutsceneResource(), LoadCutsceneCockpitOverlay(), LoadInputCursorShape(), LoadNamedPacket(), LoadPacketAllocated(), LoadPacketIntoBuffer(), and UpdateShipTurretGuns().
| long Magnitude | ( | int | value | ) |
Definition at line 130 of file eventmgr.c.
References Magnitude().
Referenced by intelligence_events(), and Magnitude().
| int MeasureShapeFrameStorage | ( | unsigned char * | shape, |
| short | frame ) |
Definition at line 384 of file eventmgr.c.
References MeasureShapeFrameStorage().
Referenced by InitializeCockpitResources(), intelligence_events(), and MeasureShapeFrameStorage().
Definition at line 1902 of file eventmgr.c.
References MouseIdleHook().
Referenced by DosMemmove(), and MouseIdleHook().
| long MultiplyFixed | ( | int | left, |
| int | right ) |
Definition at line 51 of file eventmgr.c.
References MultiplyFixed().
Referenced by accelerate_and_move_object(), apply_force_to_object(), approach_speed(), dot_product(), draw_nav_pointer(), GetShipAccelerationRate(), intelligence_events(), MultiplyFixed(), object_collision(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), rotate_about_k(), rotational_acceleration(), ScaleFixedVector(), transform_objects_to_your_view(), update_digital_readouts(), UpdateTargetLeadIndicator(), vector_cross_product(), and vector_length_in_dir().
Definition at line 2229 of file eventmgr.c.
References MusicTimerIsrHook().
Referenced by MusicTimerIsrHook().
| short OffsetSceneHotspotBounds | ( | ShortRect * | bounds, |
| const SceneHotspot * | hotspot, | ||
| short | offsetX, | ||
| short | offsetY ) |
Definition at line 2180 of file eventmgr.c.
References SceneHotspot::bottom, ShortRect::bottom, SceneHotspot::left, ShortRect::left, OffsetSceneHotspotBounds(), SceneHotspot::right, ShortRect::right, SceneHotspot::top, and ShortRect::top.
Referenced by close_behind(), FindSceneHotspotAtPosition(), and OffsetSceneHotspotBounds().
| short PeekInputEvent | ( | InputEventState * | state, |
| short | type ) |
Definition at line 929 of file eventmgr.c.
References InputEvent::field_14, InputEvent::field_18, g_196_nInputTimerTicks, g_nNextInputQueueFlushTick, g_pInputEventHead, InputEvent::modifiers, InputEventState::modifiers, PeekInputEvent(), InputEvent::primaryButton, InputEvent::secondaryButton, InputEvent::status, InputEventState::status, InputEventState::timestamp, InputEvent::type, InputEventState::type, InputEventState::value, InputEventState::x, and InputEventState::y.
Referenced by DosMemmove(), and PeekInputEvent().
| void PersonnelDriveHook | ( | short | drive | ) |
Definition at line 1978 of file eventmgr.c.
References PersonnelDriveHook().
Referenced by close_behind(), LocateLegacySaveGame(), PersonnelDriveHook(), and RunPilotDatabaseMenu().
| long PlanarMagnitude | ( | int | x, |
| int | y ) |
Definition at line 144 of file eventmgr.c.
References PlanarMagnitude().
Referenced by apply_force_to_object(), intelligence_events(), PlanarMagnitude(), rectangular_to_spherical(), and set_ship_rotation_goals().
| int PollInputEvent | ( | InputEventState * | event, |
| short | deviceMask ) |
Definition at line 922 of file eventmgr.c.
References GetNextInputEvent(), PollInputEvent(), and PumpWindowMessages().
Referenced by DosMemmove(), InflightComputer(), PollInputEvent(), and WaitForAnyInputPress().
| void QueueInputEvent | ( | int | type, |
| int | x, | ||
| int | y, | ||
| int | value, | ||
| int | primaryButton, | ||
| int | secondaryButton, | ||
| unsigned int | ignored, | ||
| unsigned int | field14, | ||
| unsigned int | field18 ) |
Definition at line 653 of file eventmgr.c.
References AllocateInputEvent(), InputEvent::field_14, InputEvent::field_18, g_16_stEventQueuePointerData, g_196_nInputTimerTicks, g_nInputDoubleClickDeadline, g_nPreviousPrimaryButton, g_nPreviousSecondaryButton, g_pInputEventHead, g_pInputEventTail, GetControlKeyState(), GetKeyboardModifiers(), GetShiftKeyState(), InputEvent::modifiers, InputEvent::next, InputEvent::previous, InputEvent::primaryButton, QueueInputEvent(), ReleaseInputEventQueue(), InputEvent::secondaryButton, InputEvent::status, InputEvent::type, InputEvent::value, void(), InputEvent::x, QueuedMouseState::x, InputEvent::y, and QueuedMouseState::y.
Referenced by DosMemmove(), KeyboardMousePump(), MainWindowProc(), QueueInputEvent(), QueueInputEventAtCursor(), and TranslatePolledInputEvent().
| void QueueInputEventAtCursor | ( | unsigned int | type, |
| short | primaryButton, | ||
| short | secondaryButton ) |
Definition at line 604 of file eventmgr.c.
References g_16_stEventQueuePointerData, QueueInputEvent(), QueueInputEventAtCursor(), QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), PollJoystickButtonEvents(), PollMenuInputDevices(), and QueueInputEventAtCursor().
| short RandomBelow | ( | short | n | ) |
Definition at line 12 of file eventmgr.c.
References RandomBelow().
Referenced by call_enemy(), check_destroy_target(), Explosion(), init_hazard(), intelligence_events(), intelligence_events(), Mgloat(), pick_from_list(), pick_regular_maneuver(), RandomBelow(), request(), run_away(), select_target(), skew_randomly(), snow_viewport(), SpawnFlakBurst(), streak_toward(), and try_far_spot().
| short RandomBelowOrEqual | ( | short | n | ) |
Definition at line 43 of file eventmgr.c.
References RandomBelowOrEqual().
Referenced by abandoned(), accelerate_and_move_object(), any_defense(), asteroid_velocity(), capital_ship_strike_mission(), check_for_lost_control(), CheckTargetLockMalfunction(), Create_explosion_debris(), Create_ship_hit_debris(), fire(), fire_flack(), fire_turrets(), hit_asteroid(), house_keep_objects(), inflict_damage(), init_hazard(), intelligence_events(), intelligence_events(), internal_damage(), launch_carrier_fighter(), Mburnout(), Mfish_hook(), Mhard_turn(), mine_intelligence(), Mroll_over(), Mveer_away(), Mwabble(), npc_communication(), perform_maneuver(), pick_from_list(), pick_regular_maneuver(), pilot_hit(), random_radial(), RandomBelowOrEqual(), RandomFixedAimComponent(), RandomSign(), repair_internal_damage(), ResolveObjectDestruction(), send_appropriate_message(), ShipAiState46(), signed_random(), skill_check(), SpawnFlakBurst(), start_lock(), tanker_intelligence(), try2allow_engage(), update_hazards(), veer_random(), and your_internal_damage().
| unsigned short RandomInRange | ( | unsigned short | lo, |
| unsigned short | hi ) |
Definition at line 31 of file eventmgr.c.
References RandomInRange().
Referenced by animate_object(), AnimateCutsceneSpeakerMouth(), AnimateTitleOrchestra(), capital_ship_strike_mission(), ChooseRandomSignedMagnitude(), DrawConstellationField(), fire(), fire_turrets(), fire_weapon(), generate_stars(), HandleSpaceFlightControls(), house_keep_objects(), InitializeConstellationField(), intelligence_events(), internal_damage(), make_shard(), malf(), new_space_music_changes(), place_exhaust_on_ships(), RandomInRange(), replenish_weapon_energy_bank(), RunCutsceneScript(), Set_up_ship_info(), ShowVictoryScreen(), start_dust(), update_star_field(), UpdateShipTurretGuns(), and vid_transmit().
| short ReadWord | ( | unsigned short * | p | ) |
Definition at line 210 of file eventmgr.c.
References ReadWord().
Referenced by ClearTextInputCharacter(), EraseLastTextInputCharacter(), intelligence_events(), ReadTextInput(), and ReadWord().
Definition at line 1615 of file eventmgr.c.
References RebootMachineHook().
Referenced by RebootMachineHook().
Definition at line 506 of file eventmgr.c.
References RecordStartTimeHook().
Referenced by RecordStartTimeHook().
Definition at line 1165 of file eventmgr.c.
References CaptureMouseCursorBackground(), DIBupdate(), DrawMouseCursor(), g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_26_bPointerDirtyValue, g_6_bCurrentInputCursorBackgroundCapturedState, RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
Referenced by DosMemmove(), RefreshMouseCursorDisplay(), and ThrottleFrameAndDrawFps().
Definition at line 2406 of file eventmgr.c.
References g_37_stPersonnelMousePointerState, ReleaseApplicationScratchBuffer(), ReleasePacketHandle(), and MouseCursorState::scratchBuffer.
Referenced by close_behind(), ReleaseApplicationScratchBuffer(), and WinMain().
| void ReleaseInputEvent | ( | InputEvent * | event | ) |
Definition at line 641 of file eventmgr.c.
References g_3_aInputEventArray, g_3_anCurrentInputEventEntryAllocation, and ReleaseInputEvent().
Referenced by DosMemmove(), ReleaseInputEvent(), ReleaseInputEventQueue(), RemoveInputEvent(), and RetainInputEventsOfType().
Definition at line 734 of file eventmgr.c.
References g_pInputEventHead, g_pInputEventTail, InputEvent::next, ReleaseInputEvent(), and ReleaseInputEventQueue().
Referenced by DosMemmove(), FlushInputEvents(), GetNextInputEvent(), PollSceneHotspotInput(), QueueInputEvent(), ReleaseInputEventQueue(), RunTitleMenuInputLoop(), and WaitForAnyInputPress().
| void RemoveInputEvent | ( | InputEvent * | event | ) |
Definition at line 776 of file eventmgr.c.
References g_pInputEventHead, g_pInputEventTail, InputEvent::next, InputEvent::previous, ReleaseInputEvent(), and RemoveInputEvent().
Referenced by DosMemmove(), GetNextInputEvent(), and RemoveInputEvent().
Definition at line 1051 of file eventmgr.c.
References RemovePointerViewportHook().
Referenced by RemovePointerViewportHook().
Definition at line 1037 of file eventmgr.c.
References ResetPointerViewportsHook().
Referenced by ResetPointerViewportsHook().
Definition at line 1131 of file eventmgr.c.
References QueuedMouseState::frame, g_101_stScrViewInfo, g_10_nSavedPointerY, g_138_nCursorDirtyRightValue, g_146_nInputCursorDirtyTop, g_148_nPointerDirtyLeft, g_15_nPointerDirtyBottom, g_16_stEventQueuePointerData, g_4_nCapturedInputCursorX, g_6_bCurrentInputCursorBackgroundCapturedState, g_abInputCursorBehind, g_nMouseCursorDrawDepth, RestoreMouseCursorBackground(), RestoreSpriteBackground(), QueuedMouseState::shape, and QueuedMouseState::viewport.
Referenced by DIBslamReal(), DosMemmove(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
Definition at line 1186 of file eventmgr.c.
References CaptureSpriteBackground(), DIBupdate(), DrawSpriteDefault(), QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), ResumeMouseCursorHook(), QueuedMouseState::shape, QueuedMouseState::shapeChanged, QueuedMouseState::viewport, QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), and ResumeMouseCursorHook().
| void RetainInputEventsOfType | ( | int | type | ) |
Definition at line 751 of file eventmgr.c.
References g_pInputEventHead, g_pInputEventTail, InputEvent::next, InputEvent::previous, ReleaseInputEvent(), RetainInputEventsOfType(), and InputEvent::type.
Referenced by DosMemmove(), and RetainInputEventsOfType().
Definition at line 18 of file eventmgr.c.
References SeedRandomFromClock().
Referenced by intelligence_events(), and SeedRandomFromClock().
| unsigned short SelectDiskDriveHook | ( | short | drive | ) |
Definition at line 1984 of file eventmgr.c.
References SelectDiskDriveHook().
Referenced by DosMemmove(), and SelectDiskDriveHook().
Definition at line 2192 of file eventmgr.c.
References ServiceCutsceneRuntimeHook().
Referenced by DosMemmove(), RunCutsceneScript(), ServiceCutsceneRuntimeHook(), UpdateMap(), and WaitForCutsceneInputEvent().
| short ServiceInputDevices | ( | short | deviceMask | ) |
Definition at line 2071 of file eventmgr.c.
References FlushInputEvents(), g_196_nInputTimerTicks, g_bSceneEscapeRequested, g_nInputPollPeriod, g_nNextInputPollTick, g_nNextInputQueueFlushTick, PumpWindowMessages(), ServiceInputDevices(), and void().
Referenced by death_sequence(), DosMemmove(), FlushPendingInputPresses(), HandleFleetOverviewInput(), HandleSpaceFlightControls(), player_input(), PollPersonnelMenuInput(), PollSceneHotspotInput(), ProcessCannedSceneInput(), RunCutsceneScript(), ServiceInputDevices(), UpdateMap(), WaitForCutsceneInputEvent(), and WaitForInputKey().
| void set_up_screen_viewport | ( | signed char | mode | ) |
Definition at line 1820 of file eventmgr.c.
References g_11_nViewportLeftOrigin, g_15_nStoredScreenViewCentreX, g_15_pScreenViewportGeometry, g_1_cStoredViewDisplayModeValue, g_37_nViewCenterY, g_49_nViewportOffsetY, g_aScreenViewportGeometry, g_nCockpitDisplayMode, g_nScreenHeight, g_nScreenWidth, g_pCockpitBackgroundPacket, ScreenViewportGeometry::height, ScreenViewportGeometry::originX, ScreenViewportGeometry::originY, set_up_screen_viewport(), and ScreenViewportGeometry::width.
Referenced by DosMemmove(), initialize_cockpit(), and set_up_screen_viewport().
| void SetFrameTimerAndWait | ( | short | period | ) |
Definition at line 1411 of file eventmgr.c.
References SetFrameTimerAndWait(), SetFrameTimerPeriod(), and WaitForFrameTick().
Referenced by AcknowledgeModalMessage(), DosMemmove(), InflightComputer(), RunTitleScreen(), and SetFrameTimerAndWait().
| void SetFrameTimerPeriod | ( | short | period | ) |
Definition at line 1405 of file eventmgr.c.
References SetFrameTimerPeriod(), and SetMultimediaTimerCallback().
Referenced by DosMemmove(), SetFrameTimerAndWait(), and SetFrameTimerPeriod().
| void SetFrameTimerPeriodDirect | ( | short | p | ) |
Definition at line 1418 of file eventmgr.c.
References SetFrameTimerPeriodDirect(), and SetMultimediaTimerCallback().
Referenced by DosMemmove(), HandleSpaceFlightControls(), LoadOriginFxDrivers(), RunSpaceFlight(), and SetFrameTimerPeriodDirect().
| void SetInputKeyState | ( | int | scanCode, |
| unsigned char | pressed ) |
Definition at line 1629 of file eventmgr.c.
References ClearDebugPauseFlags(), g_77_abKeyboardEventStates, PumpMessagesDuringWait(), SetInputKeyState(), and SystemDebugPrintf().
Referenced by DosMemmove(), MainWindowProc(), and SetInputKeyState().
Definition at line 2093 of file eventmgr.c.
References g_16_stEventQueuePointerData, SetInputViewport(), and QueuedMouseState::viewport.
Referenced by BarracksScreen(), DosMemmove(), EMStartUp(), InflightComputer(), InitializeSpaceFlightInput(), LoadInputCursorShape(), PromptToContinueCampaign(), RunCampaignChalkboardMenu(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunSpaceFlight(), RunTitleScreen(), SetInputViewport(), and ShowPlayerEjectionSequence().
Definition at line 2106 of file eventmgr.c.
References ConfigureInputPump(), PollMenuInputDevices(), and SetMenuInputPump().
Referenced by BarracksScreen(), DosMemmove(), DrawPersonnelMenuBackdrop(), InflightComputer(), PollCampaignChalkboardMenu(), PromptToContinueCampaign(), RunCampaignScript(), RunGameApplication(), RunPilotDatabaseMenu(), RunTitleScreen(), and SetMenuInputPump().
| void SetMouseCursorShape | ( | unsigned char * | shape, |
| short | frame ) |
Definition at line 1357 of file eventmgr.c.
References QueuedMouseState::frame, g_15_nMouseRenderY, g_16_stEventQueuePointerData, g_4_nDrawnCursorX, g_abInputCursorBehind, g_nMouseCursorDrawDepth, g_pDrawnInputCursorShape, RestoreSpriteBackground(), SetMouseCursorShape(), QueuedMouseState::shape, QueuedMouseState::shapeChanged, and QueuedMouseState::viewport.
Referenced by DosMemmove(), InflightComputer(), PollSceneHotspotInput(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and SetMouseCursorShape().
| void SetMouseHomePosition | ( | short | x, |
| short | y ) |
Definition at line 1377 of file eventmgr.c.
References g_16_stEventQueuePointerData, SetInputCursorHostPosition(), SetMouseHomePosition(), QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), SetMouseHomePosition(), and SetPersonnelMousePosition().
| void SetMusicTickRateHook | ( | short | period | ) |
Definition at line 2214 of file eventmgr.c.
References SetMusicTickRateHook(), and void().
Referenced by DosMemmove(), LoadOriginFxDrivers(), and SetMusicTickRateHook().
| void SetPaletteEntryFromTriplet | ( | const unsigned char * | triplet, |
| short | index ) |
Definition at line 2202 of file eventmgr.c.
References DIBsetPalette(), and SetPaletteEntryFromTriplet().
Referenced by DosMemmove(), LoadGamePaletteFile(), and SetPaletteEntryFromTriplet().
Definition at line 1044 of file eventmgr.c.
References SetPointerViewportHook().
Referenced by SetPointerViewportHook().
| void SetTextContext | ( | TextContext * | context | ) |
Definition at line 179 of file eventmgr.c.
References g_29_pCurrentTextContext, SetTextContext(), and TextContext::text.
Referenced by BuildMap(), DrawCinematicMemoryStatus(), DrawCockpitReadout(), DrawCutsceneTextAt(), DrawNavLocationReadout(), DrawTextAt(), InflightComputer(), InitializeCockpitResources(), InitializeConversationText(), InitializeCutsceneViewports(), InitializeGameTextContexts(), InitializeTextContextFromFont(), intelligence_events(), PresentCutsceneFrame(), ResetGameTextContexts(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SetTextContext(), ShowMemoryStatusDebug(), update_digital_readouts(), update_VDUs(), UpdateInflightNavText(), and UpdateMap().
| void SetTextCursor | ( | unsigned short | a, |
| unsigned short | b ) |
Definition at line 172 of file eventmgr.c.
References TextContext::cursorX, TextContext::cursorY, g_29_pCurrentTextContext, and SetTextCursor().
Referenced by DrawCockpitReadout(), DrawModalTextPanel(), DrawNavMapLegend(), DrawPersonnelFileSlot(), DrawPersonnelMenuBackdrop(), DrawPersonnelMenuChoices(), DrawPersonnelSourceChoices(), DrawPilotSaveMenuChoices(), DrawTextAt(), DrawTransferredPilotRow(), InitializeCockpitResources(), intelligence_events(), LocateLegacySaveGame(), PollCampaignChalkboardMenu(), ReadPersonnelTextField(), ReadTextInput(), RunCampaignSelectionFrame(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectTransferredPilot(), SetTextCursor(), and ShowNoTransferablePilots().
| int SetupBackBufferHook | ( | void | ) |
Definition at line 1876 of file eventmgr.c.
References SetupBackBufferHook().
Referenced by SetupBackBufferHook().
| void SetWholePaletteFromTriplets | ( | unsigned char * | palette | ) |
Definition at line 204 of file eventmgr.c.
References DIBwholePaletteFromTriplets(), and SetWholePaletteFromTriplets().
Referenced by intelligence_events(), and SetWholePaletteFromTriplets().
| unsigned int shrink | ( | int * | component | ) |
Definition at line 2050 of file eventmgr.c.
References shrink().
Referenced by DosMemmove(), shrink(), and shrink_vector().
| unsigned int shrink_vector | ( | FixedVector * | vector | ) |
Definition at line 2036 of file eventmgr.c.
References shrink(), shrink_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by DosMemmove(), point_at(), set_eye_direction_and_position(), and shrink_vector().
Definition at line 521 of file eventmgr.c.
References g_18_bEventManagerInitializationState, g_18_pEventManager, ReleasePacketHandle(), and ShutdownEventManager().
Referenced by DosMemmove(), EMShutDown(), and ShutdownEventManager().
| long SinFixed | ( | short | degrees | ) |
Definition at line 80 of file eventmgr.c.
References DEG2RAD, and SinFixed().
Referenced by draw_target_box(), intelligence_events(), reposition_fixed_child_objects(), rotate_about_i(), rotate_about_j(), rotate_about_k(), and SinFixed().
Definition at line 1971 of file eventmgr.c.
References SpeedCalibrationHook().
Referenced by SpeedCalibrationHook().
| void SplitGameClockTicksForNav | ( | unsigned char * | parts | ) |
Definition at line 2383 of file eventmgr.c.
References GetGameClockTicks(), and SplitGameClockTicksForNav().
Referenced by close_behind(), FormatNavCoordinates(), and SplitGameClockTicksForNav().
| 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().
| 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().
Definition at line 2222 of file eventmgr.c.
References StopMusicTimerHook().
Referenced by StopMusicTimerHook().
Definition at line 1485 of file eventmgr.c.
References TimerResetHook().
Referenced by ClearMemoryHeaps(), DosMemmove(), and TimerResetHook().
Definition at line 1503 of file eventmgr.c.
References TimerStopHook().
Referenced by DosMemmove(), MessagePumpHook(), and TimerStopHook().
| void TranslatePolledInputEvent | ( | unsigned short | type, |
| unsigned int | value ) |
Definition at line 550 of file eventmgr.c.
References g_16_stEventQueuePointerData, g_6_stHostMouseTextBlock, g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, HostMouseMessage::primaryButton, QueueInputEvent(), HostMouseMessage::secondaryButton, TranslatePolledInputEvent(), QueuedMouseState::x, and QueuedMouseState::y.
Referenced by DosMemmove(), get_player_input(), and TranslatePolledInputEvent().
Definition at line 544 of file eventmgr.c.
References UnhookAllInterruptVectorsHook().
Referenced by UnhookAllInterruptVectorsHook().
| void UnhookInterruptVectorHook | ( | short | vector | ) |
Definition at line 537 of file eventmgr.c.
References UnhookInterruptVectorHook().
Referenced by UnhookInterruptVectorHook().
| long Vector_magnitude | ( | const FixedVector * | vector | ) |
Definition at line 157 of file eventmgr.c.
References Vector_magnitude(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by accelerate_and_move_object(), capital_ship_strike_mission(), distance_between_points(), distance_from_point(), draw_nav_pointer(), explosion_shock_wave(), fire_afterburner(), fire_weapon(), GetShipDistanceToNavPoint(), GetVectorMagnitude(), intelligence_events(), IsVectorWithinRange(), NormalizeFixedVector(), object_collision(), PlaySfxWaveFileByNumber(), real_crash_time(), real_velocity(), rectangular_to_spherical(), set_eye_direction_and_position(), set_ship_rotation_goals(), SetFleetOverviewView(), sound_effect(), transform_objects_to_your_view(), update_digital_readouts(), update_objective_location(), UpdateTargetCameraObject(), UpdateTargetLeadIndicator(), vector_length_in_dir(), and Vector_magnitude().
Definition at line 2003 of file eventmgr.c.
References VideoReleaseHook().
Referenced by DosMemmove(), and VideoReleaseHook().
Definition at line 1424 of file eventmgr.c.
References g_5_nFrameTimerWaitTicksValue, and WaitForFrameTick().
Referenced by DosMemmove(), RunSpaceFlight(), SetFrameTimerAndWait(), and WaitForFrameTick().
Definition at line 189 of file eventmgr.c.
References DIBwaitForVerticalBlank(), and WaitForVerticalBlankThunk().
Referenced by FadeViewportPaletteToColour(), initialize_cockpit(), intelligence_events(), PanToScreen(), RefreshMemoryStatusOverlay(), RestoreGamePalette(), RunCampaignContinuePromptLoop(), RunCampaignSelectionFrame(), SaveGamePalette(), and WaitForVerticalBlankThunk().
| short g_105_nEmsIsrBusyValue |
Definition at line 2528 of file eventmgr.c.
Referenced by SoundBlasterEndOfInterrupt().
| unsigned char g_10_abUnusedEventSpace[8] |
Definition at line 2535 of file eventmgr.c.
| int g_10_nSavedPointerY |
Definition at line 2509 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), and RestoreMouseCursorBackground().
| int g_11_anPlacedObjectDepths[SPACE_OBJECT_COUNT] |
Definition at line 2511 of file eventmgr.c.
Referenced by BuildObjectDepthOrder().
| short g_11_nViewportLeftOrigin |
Definition at line 2548 of file eventmgr.c.
Referenced by set_up_screen_viewport().
| unsigned char g_128_abPauseInputState[0x100] |
Definition at line 2554 of file eventmgr.c.
Referenced by HandleSpaceFlightControls().
| unsigned char g_12_abUnusedLibraryInputData[16] |
Definition at line 2555 of file eventmgr.c.
| short g_12_wInputDeviceButtonStatus |
Definition at line 2531 of file eventmgr.c.
Referenced by get_player_input(), and HandleFleetOverviewInput().
| unsigned char g_136_abUnusedInputMemoryData[12] |
Definition at line 2562 of file eventmgr.c.
| unsigned char g_138_abUnusedLibraryData[4] |
Definition at line 2569 of file eventmgr.c.
| int g_138_nCursorDirtyRightValue |
Definition at line 2541 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), DrawMouseCursor(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| unsigned char g_13_abPreviousPauseKeyStatuses[0x100] |
Definition at line 2556 of file eventmgr.c.
Referenced by HandleSpaceFlightControls().
| unsigned char g_13_abUnusedLibrarySpaceData[4] |
Definition at line 2513 of file eventmgr.c.
| unsigned char* g_13_pActiveCutscenePixelsAddress |
Definition at line 2522 of file eventmgr.c.
Referenced by ClearActiveCutscenePixelAlias(), RouteCutsceneViewportToDisplay(), RunCampaignGameLoop(), RunLoadedCutscene(), and UpdateMap().
| int g_146_nInputCursorDirtyTop |
Definition at line 2553 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), DrawMouseCursor(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| int g_148_nPointerDirtyLeft |
Definition at line 2552 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), DrawMouseCursor(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| short g_14_nCurrentGraphicsModeDetectedValue |
Definition at line 2498 of file eventmgr.c.
Referenced by LoadOriginFxDrivers(), and LogMemoryUsage().
| int g_15_nMouseRenderY |
Definition at line 2489 of file eventmgr.c.
Referenced by DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), ResumeMouseCursorHook(), and SetMouseCursorShape().
| int g_15_nPointerDirtyBottom |
Definition at line 2542 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), DrawMouseCursor(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| short g_15_nStoredScreenViewCentreX |
Definition at line 2501 of file eventmgr.c.
Referenced by build_your_target_list(), draw_sorted_objects_to_buffer(), draw_target_box(), easy2see(), overlay_head_up_display(), set_up_screen_viewport(), and UpdateTargetLeadIndicator().
| 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().
| QueuedMouseState g_16_stEventQueuePointerData |
Definition at line 2525 of file eventmgr.c.
Referenced by ApplyPackedMousePosition(), CaptureMouseCursorBackground(), DisableMouseCursorDrawing(), DrawMouseCursor(), EnableMouseCursorDrawing(), FindQueuedInputEvent(), GetInputCursorShape(), GetMouseHomePosition(), GetNextInputEvent(), KeyboardMousePump(), LoadInputCursorShape(), PollMenuInputDevices(), QueueInputEvent(), QueueInputEventAtCursor(), RestoreMouseCursorBackground(), ResumeMouseCursorHook(), SetInputViewport(), SetMouseCursorShape(), SetMouseHomePosition(), SetPersonnelMousePosition(), ThrottleFrameAndDrawFps(), and TranslatePolledInputEvent().
Definition at line 2526 of file eventmgr.c.
Referenced by ConfigureInputPump(), PumpWindowMessages(), WaitForInputKey(), and WinMain().
| unsigned char g_17_abUnusedLibraryInputBuffer[8] |
Definition at line 2508 of file eventmgr.c.
| unsigned char g_18_abUnreferencedInputBuffer[4] |
Definition at line 2496 of file eventmgr.c.
| short g_18_bEventManagerInitializationState |
Definition at line 2495 of file eventmgr.c.
Referenced by EMShutDown(), InitializeInputManagerMemory(), and ShutdownEventManager().
| short g_18_nInterfaceEventMode |
Definition at line 2570 of file eventmgr.c.
Referenced by InflightComputer(), InitializeSpaceFlightInput(), RunCampaignScript(), RunSpaceFlight(), RunTitleScreen(), ShowPlayerEjectionSequence(), and Title_Sequence().
| InputManagerState* g_18_pEventManager |
Definition at line 2543 of file eventmgr.c.
Referenced by InflightComputer(), InitializeInputManagerMemory(), LoadInputCursorShape(), PollSceneHotspotInput(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), and ShutdownEventManager().
| volatile int g_196_nInputTimerTicks |
Definition at line 2550 of file eventmgr.c.
Referenced by AnimateCutsceneSpeakerMouth(), DrawHudMessageSlot(), ExecuteCutsceneScene(), ExecuteCutsceneSequence(), FindQueuedInputEvent(), FlushInputEvents(), GetNextInputEvent(), InflightComputer(), PeekInputEvent(), PresentCutsceneFrame(), PumpWindowMessages(), QueueInputEvent(), RunCutsceneScript(), ServiceInputDevices(), UpdateCutscenePlaneObject(), UpdateCutsceneSpriteObject(), UpdateInputDeviceTransitions(), UpdateMap(), and WinMain().
| short g_19_bStoredHighMemoryEnabled |
Definition at line 2505 of file eventmgr.c.
Referenced by AddCutsceneMusicNode(), EnableHighMemoryResources(), free_ship(), initialize_cockpit(), InitializeCockpitResources(), InitializeMusicResources(), load_common_3Space_objects(), load_ship(), LoadCachedCutsceneResource(), LoadCommPortraitResources(), LoadOriginFxDrivers(), LoadSpaceflightResources(), RunGameApplication(), set_up_next_wave(), and ToggleTargetCameraTracking().
| unsigned char g_1_abUnreferencedInputData[4] |
Definition at line 2539 of file eventmgr.c.
| signed char g_1_cStoredViewDisplayModeValue |
Definition at line 2515 of file eventmgr.c.
Referenced by dump_buffer_to_screen(), ejection_sequence(), HandleSpaceFlightControls(), InflightComputer(), init_3Space_objects(), initialize_cockpit(), new_view(), RunSpaceFlight(), and set_up_screen_viewport().
| unsigned char g_26_abUnusedInputStorage1[4] |
Definition at line 2545 of file eventmgr.c.
| unsigned char g_26_abUnusedInputStorage2[4] |
Definition at line 2546 of file eventmgr.c.
| unsigned char g_26_bMouseCursorEnabled |
Definition at line 2506 of file eventmgr.c.
Referenced by EMStartUp(), HandleSpaceFlightControls(), InflightComputer(), and InitializeSpaceFlightInput().
| int g_26_bPointerDirtyValue |
Definition at line 2538 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), DrawMouseCursor(), and RefreshMouseCursorDisplay().
| void* g_26_pLibraryCurrentLastPacketAllocation |
Definition at line 2504 of file eventmgr.c.
Referenced by PacketLoad().
| TextContext* g_29_pCurrentTextContext |
Definition at line 2563 of file eventmgr.c.
Referenced by AppendFormattedText(), AppendTextCharacter(), ClearCutsceneTextViewport(), ClearTextInputCharacter(), DrawCinematicFontCharacter(), DrawCinematicMemoryStatus(), DrawCutsceneTextAt(), DrawFormattedText(), DrawNavTextLine(), DrawTextCharacter(), DrawTextInputCursor(), DrawTextString(), DrawWrappedCinematicText(), EraseCharacterAfterTextCursor(), EraseLastTextInputCharacter(), FormatTextBufferFromStart(), FormatTextTokens(), GetFontCharWidth(), InitializeModalTextPanel(), MeasureCinematicFontCharacterWidth(), MeasureCinematicFontLineHeight(), ReadTextInput(), RestoreCutsceneTextBacking(), RestoreModalTextPanel(), RunCutsceneScript(), RunLoadedCutscene(), SetTextContext(), SetTextCursor(), and ShowMemoryStatusDebug().
| int g_2_bIgnoreNextCursorMoveFlag |
Definition at line 2534 of file eventmgr.c.
Referenced by KeyboardMousePump(), and MainWindowProc().
| void(*) g_36_pfnRenderSceneFontCharacterHandler(char character) | ( | char | character | ) |
Definition at line 2567 of file eventmgr.c.
Referenced by InitializeCinematicTextRenderer().
| unsigned char g_37_abUnusedEventManagerBuffer[272] |
Definition at line 2551 of file eventmgr.c.
| short g_37_nViewCenterY |
Definition at line 2502 of file eventmgr.c.
Referenced by build_your_target_list(), draw_sorted_objects_to_buffer(), draw_target_box(), easy2see(), overlay_head_up_display(), set_up_screen_viewport(), and UpdateTargetLeadIndicator().
| MouseCursorState g_37_stPersonnelMousePointerState |
Definition at line 2544 of file eventmgr.c.
Referenced by AllocateApplicationScratchBuffer(), HandleFleetOverviewInput(), InflightComputer(), overlay_head_up_display(), player_input(), PollPersonnelMenuInput(), ReleaseApplicationScratchBuffer(), RestoreTransientCockpitGraphics(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunSpaceFlight(), SelectLegacyGameSource(), SelectPersonnelFileSlot(), SelectTransferredPilot(), SetPersonnelCursorPosition(), and ShowPlayerEjectionSequence().
| unsigned char g_388_abUnusedLibraryBuffer1[4] |
Definition at line 2564 of file eventmgr.c.
| unsigned char g_38_abUnusedLibraryInputBufferData[4] |
Definition at line 2532 of file eventmgr.c.
| unsigned char g_39_abUnusedInputSpace2[12] |
Definition at line 2527 of file eventmgr.c.
| unsigned char* g_39_pCurrentCampaignDataOffset |
Definition at line 2492 of file eventmgr.c.
Referenced by RunCampaignGameLoop().
| unsigned char g_3_abUnusedLibraryBytes[4] |
Definition at line 2503 of file eventmgr.c.
| int g_3_anCurrentInputEventEntryAllocation[0x100] |
Definition at line 2557 of file eventmgr.c.
Referenced by AllocateInputEvent(), and ReleaseInputEvent().
| int g_3_nEventClockScaleValue |
Definition at line 2565 of file eventmgr.c.
Referenced by UpdateInputDeviceTransitions().
| void(*) g_3_pfnRenderSceneTextStringHandler(char *text) | ( | char * | text | ) |
Definition at line 2560 of file eventmgr.c.
Referenced by InitializeCinematicTextRenderer().
| short g_49_nViewportOffsetY |
Definition at line 2547 of file eventmgr.c.
Referenced by print_message_text(), RestoreHudMessageBackground(), set_up_screen_viewport(), and ShowHudTextLine().
| unsigned char g_4_abUnreferencedEventStorage[2] |
Definition at line 2494 of file eventmgr.c.
| unsigned char g_4_abUnusedEventStorage[8] |
Definition at line 2549 of file eventmgr.c.
| int g_4_nCapturedInputCursorX |
Definition at line 2510 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), and RestoreMouseCursorBackground().
| int g_4_nDrawnCursorX |
Definition at line 2490 of file eventmgr.c.
Referenced by DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), ResumeMouseCursorHook(), and SetMouseCursorShape().
| unsigned char g_56_abUnusedEventBuffer[6] |
Definition at line 2523 of file eventmgr.c.
| int g_56_anStoredObjectSortedIndicesData[SPACE_OBJECT_COUNT] |
Definition at line 2520 of file eventmgr.c.
Referenced by BuildObjectDepthOrder(), and draw_sorted_objects_to_buffer().
| unsigned char g_58_abUnreferencedInputStorage1[8] |
Definition at line 2512 of file eventmgr.c.
| unsigned char g_59_abUnusedLibraryBuffer2[4] |
Definition at line 2568 of file eventmgr.c.
Definition at line 2558 of file eventmgr.c.
Referenced by EMStartUp().
| unsigned char g_5_abUnreferencedInputStorage2[4] |
Definition at line 2521 of file eventmgr.c.
| unsigned char g_5_abUnusedInputSpace1[2] |
Definition at line 2497 of file eventmgr.c.
| volatile int g_5_nFrameTimerWaitTicksValue |
Definition at line 2537 of file eventmgr.c.
Referenced by FrameTimerCallback(), IsFrameTickElapsed(), SetMultimediaTimerCallback(), and WaitForFrameTick().
| unsigned char g_68_abUnusedInputSpace3[16] |
Definition at line 2529 of file eventmgr.c.
| signed char g_6_bCampaignFlightRunning |
Definition at line 2530 of file eventmgr.c.
Referenced by RunCampaignGameLoop().
| int g_6_bCurrentInputCursorBackgroundCapturedState |
Definition at line 2493 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| PersonnelMouseSample g_6_stPersonnelMouseData |
Definition at line 2561 of file eventmgr.c.
Referenced by KeyboardMousePump(), PollJoystickButtonEvents(), PollMenuInputDevices(), and SetPersonnelMousePosition().
| short g_6_wQueuedButtonsState |
Definition at line 2499 of file eventmgr.c.
Referenced by HandleFleetOverviewInput(), and player_input().
| unsigned char g_77_abKeyboardEventStates[0x80] |
Definition at line 2507 of file eventmgr.c.
Referenced by ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), and SetInputKeyState().
| unsigned char g_86_abUnreferencedEventData[8] |
Definition at line 2566 of file eventmgr.c.
| short g_86_nCurrentInputTickInterval |
Definition at line 2536 of file eventmgr.c.
Referenced by EMStartUp().
| unsigned char g_88_nEventRepeatDelayState |
Definition at line 2500 of file eventmgr.c.
Referenced by EMStartUp(), HandleSpaceFlightControls(), InflightComputer(), InitializeSpaceFlightInput(), RunSpaceFlight(), and ShowPlayerEjectionSequence().
| unsigned char g_8_abUnusedInputSystemBytes[4] |
Definition at line 2533 of file eventmgr.c.
| short g_96_nHighMemoryInitValue |
Definition at line 2514 of file eventmgr.c.
Referenced by EnableHighMemoryResources().
| unsigned char g_97_abUnusedInputSystemBuffer[8] |
Definition at line 2517 of file eventmgr.c.
| unsigned char g_9_abUnusedInputData[16] |
Definition at line 2491 of file eventmgr.c.
| unsigned char g_9_abUnusedLibrarySpace[260] |
Definition at line 2559 of file eventmgr.c.
| signed char g_9_bCinematicSpriteTextEnableStatus |
Definition at line 2516 of file eventmgr.c.
Referenced by DrawCutsceneTextAt(), DrawFormattedText(), FormatTextTokens(), and RunCutsceneScript().
| short g_9_nStoredHighMemoryResourceSetupWord |
Definition at line 2540 of file eventmgr.c.
Referenced by EnableHighMemoryResources().
| signed char g_acDirectionShapeFlip[ DIRECTION_VIEW_COUNT *DIRECTION_SHAPE_TABLE_COUNT] |
Definition at line 2462 of file eventmgr.c.
Referenced by get_right_shape().
| signed char g_acDirectionShapeFrame[ DIRECTION_VIEW_COUNT *DIRECTION_SHAPE_TABLE_COUNT] |
Definition at line 2443 of file eventmgr.c.
Referenced by get_right_shape().
| ScreenViewportGeometry g_aScreenViewportGeometry[7] |
Definition at line 2434 of file eventmgr.c.
Referenced by set_up_screen_viewport().
| signed char g_bSceneEscapeRequested = 0 |
Definition at line 2420 of file eventmgr.c.
Referenced by AnimateTitleOrchestra(), death_sequence(), HandleSpaceFlightControls(), InflightComputer(), MainWindowProc(), PlayTitleConductorCue(), PollEscapeKey(), PushTitleOrchestraAway(), RevealTitleLogo(), RunCampaignScript(), RunCampaignSelectionFrame(), RunCutsceneScript(), RunGameApplication(), RunLoadedCutscene(), RunTitleScreen(), ServiceInputDevices(), ShowVictoryScreen(), Title_Sequence(), update_objects_in_space(), and wait_for_end_of_music().
| signed char g_cKeypadMouseSpeedValue |
Definition at line 2524 of file eventmgr.c.
Referenced by EMStartUp(), and KeyboardMousePump().
| int g_nInputDoubleClickDeadline = 0 |
Definition at line 2424 of file eventmgr.c.
Referenced by QueueInputEvent().
| int g_nInputEventPoolInitialized = 0 |
Definition at line 2423 of file eventmgr.c.
Referenced by AllocateInputEvent().
| short g_nInputPollPeriod = 0 |
Definition at line 2482 of file eventmgr.c.
Referenced by RunLoadedCutscene(), and ServiceInputDevices().
| int g_nMouseCursorDrawDepth = 1 |
Definition at line 2429 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), DisableMouseCursorDrawing(), DrawMouseCursor(), EnableMouseCursorDrawing(), InitializeMouseCursorDepth(), RestoreMouseCursorBackground(), ResumeMouseCursorHook(), and SetMouseCursorShape().
| int g_nNextInputPollTick = 0 |
Definition at line 2481 of file eventmgr.c.
Referenced by ServiceInputDevices().
| int g_nNextInputQueueFlushTick = 0 |
Definition at line 2427 of file eventmgr.c.
Referenced by FindQueuedInputEvent(), FlushInputEvents(), GetNextInputEvent(), PeekInputEvent(), and ServiceInputDevices().
| int g_nPreviousPrimaryButton = 0 |
Definition at line 2425 of file eventmgr.c.
Referenced by QueueInputEvent().
| int g_nPreviousSecondaryButton = 0 |
Definition at line 2426 of file eventmgr.c.
Referenced by QueueInputEvent().
| short g_nScreenHeight = 200 |
Definition at line 2431 of file eventmgr.c.
Referenced by auto_pilot_sequence(), HandleSpaceFlightControls(), initialize_cockpit(), RunSpaceFlight(), set_eye_direction_and_position(), and set_up_screen_viewport().
| short g_nScreenWidth = 320 |
Definition at line 2430 of file eventmgr.c.
Referenced by auto_pilot_sequence(), draw_nav_pointer(), HandleSpaceFlightControls(), initialize_cockpit(), RunSpaceFlight(), set_eye_direction_and_position(), set_up_screen_viewport(), transform_objects_to_your_view(), and UpdateTargetLeadIndicator().
| int g_nUnusedEventWord1 = 0 |
Definition at line 2432 of file eventmgr.c.
| int g_nUnusedEventWord2 = 0 |
Definition at line 2433 of file eventmgr.c.
| unsigned char* g_pDrawnInputCursorShape = 0 |
Definition at line 2428 of file eventmgr.c.
Referenced by DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), ResumeMouseCursorHook(), and SetMouseCursorShape().
| InputEvent* g_pInputEventHead = 0 |
Definition at line 2421 of file eventmgr.c.
Referenced by FindQueuedInputEvent(), GetNextInputEvent(), PeekInputEvent(), QueueInputEvent(), ReleaseInputEventQueue(), RemoveInputEvent(), and RetainInputEventsOfType().
| InputEvent* g_pInputEventTail = 0 |
Definition at line 2422 of file eventmgr.c.
Referenced by QueueInputEvent(), ReleaseInputEventQueue(), RemoveInputEvent(), and RetainInputEventsOfType().