|
Wing Commander
Reconstructed Win32 source (1996)
|
Event manager, mouse pointer and frame timer. More...
Go to the source code of this file.
Variables | |
| static unsigned char | abCursorSaveArea [0x1000] |
| InputEvent | aInputEvtPool [0x100] |
| int | nMouseCursorSavedCoordY |
| int | nMouseCursorSavedX |
| unsigned char | bInputModeState |
| unsigned char | bFilteredKeyWaitActive |
| int | bEventMouseCursorDrawnFlag |
| short | nEventManagerActive |
| short | nCurrentViewCenterPosX |
| short | nCurrentViewCenterPosY |
| short | bCurrentExpandedMemoryAvail |
| short | nPktDecompressSourceFile |
| unsigned char | abInputKeyStateArray [0x80] |
| int | nMousePointerDrawnY |
| int | nMousePointerDrawnX |
| int | anEventObjectDepthPlacedList [SPACE_OBJECT_COUNT] |
| short | DAT_0059a9f0 |
Event manager, mouse pointer and frame timer.
Address range 4355f0-436cff. The FM Towns executable preserves this unit's original source name, source\eventmgr.c.
Definition in file eventmgr.c.
| InputEvent * AllocateInputEvent | ( | void | ) |
Definition at line 73 of file eventmgr.c.
References aiInputEventSlotUsedTable, aInputEvtPool, AllocateInputEvent(), and bInputEventPoolInitialized.
Referenced by AllocateInputEvent(), DosMemcpy(), and QueueInputEvent().
| void * AllocateSmallMemoryBlock | ( | short | size | ) |
Definition at line 1141 of file eventmgr.c.
References AllocateSmallMemoryBlock().
Referenced by AllocateSmallMemoryBlock(), and DosMemcpy().
| void * AllocateUntaggedMemory | ( | unsigned int | size | ) |
Definition at line 648 of file eventmgr.c.
References AllocateTaggedMemory(), and AllocateUntaggedMemory().
Referenced by AllocateUntaggedMemory(), and DosMemcpy().
| void __stdcall ApplyPackedMousePosition | ( | ShortPoint | point | ) |
Definition at line 589 of file eventmgr.c.
References ApplyPackedMousePosition(), SetMousePositionDuplicate(), stMouseCursorState, MouseCursorState::x, ShortPoint::x, MouseCursorState::y, and ShortPoint::y.
Referenced by ApplyPackedMousePosition(), and DosMemcpy().
Definition at line 432 of file eventmgr.c.
References abCursorSaveArea, bEventMouseCursorDrawnFlag, bMouseCursorDamagePending, CaptureMouseCursorBackground(), CaptureSpriteBackground(), MouseCursorState::frame, nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMouseCursorShowCount, nMousePointerDamageTopValue, nMousePointerDrawnX, nMousePointerDrawnY, MouseCursorState::shape, stMouseCursorState, MouseCursorState::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by CaptureMouseCursorBackground(), DIBslamReal(), DosMemcpy(), and RefreshMouseCursorDisplay().
Definition at line 405 of file eventmgr.c.
References CheckCursor().
Referenced by AnimateBarracks(), CheckCursor(), DosMemcpy(), DrawBarracksStaticDetails(), and DrawMouseCursorIntoViewport().
Definition at line 800 of file eventmgr.c.
References abInputKeyStateArray, ClearDebugPauseFlags(), and ClearInputKeyState().
Referenced by ClearInputKeyState(), DosMemcpy(), PlaySceneAnimation(), SceneDirector(), and WaitForKeyExceptXOrF12().
Definition at line 787 of file eventmgr.c.
References abInputKeyStateArray, ClearDebugPauseFlags(), and ClearInputKeyStatePreservingModifiers().
Referenced by BarracksScreen(), ClearInputKeyStatePreservingModifiers(), DosMemcpy(), FetchDiskPacketRetrying(), funeral_sequence(), RecRoom(), ResetInputKeyStatePreservingModifiers(), SelectTrainSimMission(), ShowChalkBoard(), Title_Sequence(), ViewMedals(), WaitForInputKey(), and WaitForSceneAdvance().
| void __stdcall ConvertChar_Int | ( | char * | text, |
| short | number, | ||
| short | digits ) |
Definition at line 1378 of file eventmgr.c.
References ConvertChar_Int().
Referenced by ConvertChar_Int(), DosMemcpy(), FillGraphicSuffix(), and SetDiskFileNumber().
Definition at line 1097 of file eventmgr.c.
References DosInterruptHandlerHook().
Referenced by DosInterruptHandlerHook(), and main().
Definition at line 890 of file eventmgr.c.
References aeObjectClass, aeObjectTypeList, anSortedObjects, apObjShapeArray, asObjectDrawPosX, asObjectDrawPosY, asObjectFlipArray, asObjectScreenXList, asObjectScreenYArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, draw_sorted_objects_to_buffer(), DrawSpriteDefault(), DrawSpriteScaled(), nCurrentViewCenterPosX, nCurrentViewCenterPosY, nNavPointerObject, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, pCurrentConstellationShape, SPACE_OBJECT_COUNT, and stSpaceBufferViewport.
Referenced by DosMemcpy(), Draw_3Space_Frame(), draw_sorted_objects_to_buffer(), and ShowCarrierLaunchSequence().
Definition at line 465 of file eventmgr.c.
References bMouseCursorDamagePending, DrawMouseCursor(), DrawSpriteDefault(), MouseCursorState::frame, nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMouseCursorShowCount, nMousePointerDamageTopValue, MouseCursorState::shape, stMouseCursorState, MouseCursorState::viewport, MouseCursorState::x, and MouseCursorState::y.
Referenced by DIBslamReal(), DosMemcpy(), DrawMouseCursor(), and RefreshMouseCursorDisplay().
Definition at line 550 of file eventmgr.c.
References EnterAllocationScope(), and nMouseCursorShowCount.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), ClearTextInputCharacter(), ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), DosMemcpy(), EnterAllocationScope(), EraseLastTextInputCharacter(), HandleBarracksBunkSelection(), InflightComputer(), LoadGameFromSlot(), PollMenuInputDevices(), RecRoom(), SelectTrainSimMission(), ShowConfedNavScan(), Title_Sequence(), and WarnLoadGameFirst().
Definition at line 1199 of file eventmgr.c.
References ExitCleanupHook().
Referenced by DosMemcpy(), ExitCleanupHook(), and main().
| short ExitStatusHook | ( | void | ) |
Definition at line 1206 of file eventmgr.c.
References ExitStatusHook().
Referenced by ExitStatusHook().
| void __stdcall FillGraphicSuffix | ( | char * | path, |
| short | number, | ||
| short | digits ) |
Definition at line 1363 of file eventmgr.c.
References ConvertChar_Int(), DosStrchr(), and FillGraphicSuffix().
Referenced by DosMemcpy(), FillGraphicSuffix(), and OpenDiskDataFile().
Definition at line 1194 of file eventmgr.c.
References FinishPacketDecompressionHook().
Referenced by DecompressPacketSection(), DosMemcpy(), and FinishPacketDecompressionHook().
Definition at line 381 of file eventmgr.c.
References FlushInputEvents(), and ReleaseInputEventQueue().
Referenced by BarracksScreen(), CheckEscaped(), DosMemcpy(), EstablishingShot(), FlushInputEvents(), funeral_sequence(), HandleSpaceFlightControls(), PollMenuInputDevices(), RecRoom(), RunSpaceFlight(), SceneDirector(), ShowChalkBoard(), ShowOnScreenMessage(), ShowTrainSimHighScores(), Title_Sequence(), ViewMedals(), WaitForInputKey(), WaitForKeyAcknowledge(), WaitForKeyExceptXOrF12(), and WaitForSceneAdvance().
Definition at line 637 of file eventmgr.c.
References FrameTickHook().
Referenced by FrameTickHook().
Definition at line 1147 of file eventmgr.c.
References FreeIfNotNull().
Referenced by DosMemcpy(), FreeIfNotNull(), InitializeNearHeap(), and ShutdownNearHeap().
| short GetCurrentDiskDriveHook | ( | void | ) |
Definition at line 1181 of file eventmgr.c.
References GetCurrentDiskDriveHook().
Referenced by DosMemcpy(), GetCurrentDiskDriveHook(), main(), and OpenDiskDataFile().
| unsigned int GetFixedOneMillion | ( | void | ) |
Definition at line 692 of file eventmgr.c.
References GetFixedOneMillion().
Referenced by DosMemcpy(), GetFixedOneMillion(), and GetFixedOneMillionThunk().
| unsigned int GetFixedOneMillionAlt | ( | void | ) |
Definition at line 698 of file eventmgr.c.
References GetFixedOneMillionAlt().
Referenced by DosMemcpy(), GetFixedOneMillionAlt(), and GetFixedOneMillionThunkAlt().
| void __stdcall GetMouseCursorPosition | ( | ShortPoint * | point | ) |
Definition at line 597 of file eventmgr.c.
References GetMouseCursorPosition(), stMouseCursorState, MouseCursorState::x, ShortPoint::x, MouseCursorState::y, and ShortPoint::y.
Referenced by DosMemcpy(), and GetMouseCursorPosition().
| unsigned short GetNavRangeSentinel | ( | void | ) |
Definition at line 1102 of file eventmgr.c.
References GetNavRangeSentinel().
Referenced by DosMemcpy(), GetNavRangeSentinel(), and InitializeNearHeap().
| short __stdcall GetNextInputEvent | ( | InputEventState * | state | ) |
Definition at line 228 of file eventmgr.c.
References Viewport::bottom, GetNextInputEvent(), Viewport::left, InputEvent::modifiers, InputEventState::modifiers, pInputEventHead, InputEvent::primaryButton, MouseCursorState::primaryButton, RemoveInputEvent(), Viewport::right, InputEvent::secondaryButton, MouseCursorState::secondaryButton, stMouseCursorState, Viewport::top, InputEvent::type, InputEvent::value, InputEventState::value, MouseCursorState::viewport, InputEvent::x, InputEventState::x, MouseCursorState::x, InputEvent::y, InputEventState::y, and MouseCursorState::y.
Referenced by DosMemcpy(), GetNextInputEvent(), player_input(), and PollInputEvent().
| unsigned short GetOriginalFreeMemory | ( | void | ) |
Definition at line 1108 of file eventmgr.c.
References GetOriginalFreeMemory().
Referenced by DosMemcpy(), GetOriginalFreeMemory(), LogMemoryUsage(), and ShowMemoryStatusDebug().
| unsigned int GetPacketDecompressionResult | ( | void * | packet | ) |
Definition at line 674 of file eventmgr.c.
References GetPacketDecompressionResult(), and void().
Referenced by DecompressPacketSection(), DosMemcpy(), and GetPacketDecompressionResult().
| unsigned short __stdcall GetShutdownErrorCode | ( | unsigned char * | driveState | ) |
Definition at line 1187 of file eventmgr.c.
References GetShutdownErrorCode(), and void().
Referenced by DosMemcpy(), GetShutdownErrorCode(), and main().
| unsigned short GetSoundHardwareFlag | ( | void | ) |
Definition at line 642 of file eventmgr.c.
References GetSoundHardwareFlag().
Referenced by DosMemcpy(), GetSoundHardwareFlag(), and IsSoundHardwarePresent().
| unsigned int GetStartupErrorCode | ( | int | vector | ) |
Definition at line 1154 of file eventmgr.c.
References GetStartupErrorCode(), and void().
Referenced by DosMemcpy(), GetStartupErrorCode(), and main().
| short __stdcall GetViewportIntersection | ( | ShortRect * | intersection, |
| const ShortRect * | first, | ||
| const ShortRect * | second ) |
Definition at line 1257 of file eventmgr.c.
References ShortRect::bottom, GetViewportIntersection(), ShortRect::left, MaxShort(), MinShort(), ShortRect::right, and ShortRect::top.
Referenced by GetViewportIntersection().
| unsigned short IdentityWord | ( | unsigned short | v | ) |
Definition at line 681 of file eventmgr.c.
References IdentityWord().
Referenced by DosMemcpy(), get_right_shape(), and IdentityWord().
Definition at line 1170 of file eventmgr.c.
References InterruptVectorHook().
Referenced by InterruptVectorHook().
Definition at line 962 of file eventmgr.c.
References aeObjectClass, aeObjectTypeList, apObjShapeArray, asObjectDrawPosX, asObjectDrawPosY, asObjectFlipArray, asObjectViewFrames, asObjScreenAngles, asObjScreenScalesArray, cPrimaryViewBufferColour, DrawSolidColourSprite(), DrawSolidColourSpriteScaled(), intro_drawbackgroundships(), nNavPointerObject, OBJECT_CLASS_DUST, OBJECT_CLASS_NULL, OBJECT_CLASS_PLANET, OBJECT_CLASS_STAR, pCurrentConstellationShape, SPACE_OBJECT_COUNT, and stSpaceBufferViewport.
Referenced by DosMemcpy(), intro_drawbackgroundships(), and Title_Sequence().
| int IsFrameTickElapsed | ( | void | ) |
Definition at line 629 of file eventmgr.c.
References bFrameTickPendingFlag, and IsFrameTickElapsed().
Referenced by BarracksScreen(), CloseLook(), DisplayTrainSimHighScoreTable(), DosMemcpy(), DrawFuneralLongShot(), funeral_wingman(), IsFrameTickElapsed(), LongTalk(), PinMedal(), PlaySceneAnimation(), RecRoom(), ShowCampaignVictorySequence(), and WaitForSceneAdvance().
| short __stdcall IsInputEventQueued | ( | short | type | ) |
Definition at line 371 of file eventmgr.c.
References IsInputEventQueued(), InputEvent::next, and pInputEventHead.
Referenced by CheckEscaped(), DosMemcpy(), IsInputEventQueued(), player_input(), and WaitForKeyAcknowledge().
| short IsMouseInstalled | ( | void | ) |
Definition at line 399 of file eventmgr.c.
References IsMouseInstalled().
Referenced by IsMouseInstalled().
| unsigned int IsVectorWithinRange | ( | FixedVector * | vector, |
| short | range ) |
Definition at line 1212 of file eventmgr.c.
References IsVectorWithinRange(), and Vector_magnitude().
Referenced by check_for_collision(), DosMemcpy(), IsPointWithinRange(), IsVectorWithinRange(), and ships_within_range().
| unsigned int JoystickEdgeHook | ( | int | button | ) |
Definition at line 1120 of file eventmgr.c.
References JoystickEdgeHook(), and void().
Referenced by DosMemcpy(), GetJoystickButtonEdge(), and JoystickEdgeHook().
Definition at line 1136 of file eventmgr.c.
References JoystickResetHook().
Referenced by JoystickResetHook().
| short JoystickStatusHook | ( | void | ) |
Definition at line 1128 of file eventmgr.c.
References JoystickStatusHook().
Referenced by JoystickStatusHook().
Definition at line 817 of file eventmgr.c.
References KeyboardScanHook().
Referenced by KeyboardScanHook().
Definition at line 810 of file eventmgr.c.
References KeyboardStateHook().
Referenced by KeyboardStateHook().
Definition at line 556 of file eventmgr.c.
References LeaveAllocationScope(), and nMouseCursorShowCount.
Referenced by BarracksScreen(), CentreMouseOnCurrentNavObjective(), ClearTextInputCharacter(), ConfirmAwakenAfterBadData(), ConfirmQuitWingCommander(), ConfirmReplaceFaultyData(), DosMemcpy(), EraseLastTextInputCharacter(), HandleBarracksBunkSelection(), InflightComputer(), LeaveAllocationScope(), LoadGameFromSlot(), PollMenuInputDevices(), RecRoom(), SelectTrainSimMission(), ShowConfedNavScan(), SuspendMouseCursor(), Title_Sequence(), and WarnLoadGameFirst().
| short MemoryServiceErrorHook | ( | void | ) |
Definition at line 767 of file eventmgr.c.
References MemoryServiceErrorHook().
Referenced by MemoryServiceErrorHook().
| int __stdcall MemoryServiceMapHook | ( | int | value | ) |
Definition at line 735 of file eventmgr.c.
References MemoryServiceMapHook(), and void().
Referenced by MemoryServiceMapHook().
| int __stdcall MemoryServiceQueryHook | ( | int | value | ) |
Definition at line 708 of file eventmgr.c.
References MemoryServiceQueryHook(), and void().
Referenced by MemoryServiceQueryHook().
| void __stdcall MemoryServiceReleaseHook | ( | int | value | ) |
Definition at line 717 of file eventmgr.c.
References MemoryServiceReleaseHook(), and void().
Referenced by MemoryServiceReleaseHook().
| short MemoryServiceResetHook | ( | void | ) |
Definition at line 775 of file eventmgr.c.
References MemoryServiceResetHook().
Referenced by MemoryServiceResetHook().
Definition at line 752 of file eventmgr.c.
References MemoryServiceShutdownHook().
Referenced by MemoryServiceShutdownHook().
| int MemoryServiceStatusHook | ( | void | ) |
Definition at line 759 of file eventmgr.c.
References MemoryServiceStatusHook().
Referenced by MemoryServiceStatusHook().
| int __stdcall MemoryServiceTransferHook | ( | int | first, |
| int | second ) |
Definition at line 725 of file eventmgr.c.
References MemoryServiceTransferHook(), and void().
Referenced by MemoryServiceTransferHook().
| short MemoryServiceVersionHook | ( | void | ) |
Definition at line 744 of file eventmgr.c.
References MemoryServiceVersionHook().
Referenced by MemoryServiceVersionHook().
Definition at line 1086 of file eventmgr.c.
References MouseActivityHook().
Referenced by MouseActivityHook().
Definition at line 427 of file eventmgr.c.
References MouseCursorCaptureHook().
Referenced by MouseCursorCaptureHook().
Definition at line 545 of file eventmgr.c.
References MouseCursorDisplayHook().
Referenced by MouseCursorDisplayHook().
Definition at line 419 of file eventmgr.c.
References MouseCursorRedrawHook().
Referenced by MouseCursorRedrawHook().
Definition at line 1091 of file eventmgr.c.
References MouseIdleHook().
Referenced by DosMemcpy(), LogMemoryUsage(), and MouseIdleHook().
| short __stdcall PeekInputEvent | ( | InputEventState * | state, |
| short | type ) |
Definition at line 343 of file eventmgr.c.
References InputEventState::modifiers, InputEvent::next, PeekInputEvent(), pInputEventHead, InputEventState::timestamp, InputEvent::type, InputEventState::type, InputEventState::value, InputEventState::x, and InputEventState::y.
Referenced by CheckEscaped(), DosMemcpy(), PeekInputEvent(), ShowChalkBoard(), and ViewMedals().
| short __stdcall PollInputEvent | ( | InputEventState * | event, |
| short | filter ) |
Definition at line 336 of file eventmgr.c.
References GetNextInputEvent(), PollInputEvent(), and PumpWindowMessages().
Referenced by BarracksScreen(), CheckEscaped(), DosMemcpy(), InflightComputer(), player_input(), PollInputEvent(), RecRoom(), SelectTrainSimMission(), Title_Sequence(), WaitForInputKey(), WaitForSceneAdvance(), and WarnLoadGameFirst().
| void QueueInputEvent | ( | int | type, |
| int | x, | ||
| int | y, | ||
| int | value, | ||
| int | primaryButton, | ||
| int | secondaryButton, | ||
| unsigned int | timestamp ) |
Definition at line 114 of file eventmgr.c.
References AllocateInputEvent(), GetControlKeyState(), GetKeyboardModifiers(), GetShiftKeyState(), InputEvent::modifiers, InputEvent::next, pInputEventHead, pInputEventTail, InputEvent::previous, InputEvent::primaryButton, QueueInputEvent(), ReleaseInputEventQueue(), InputEvent::secondaryButton, InputEvent::type, InputEvent::value, InputEvent::x, and InputEvent::y.
Referenced by DosMemcpy(), MainWindowProc(), MoveMenuPointerFromKeyboard(), QueueInputEvent(), QueueInputEventAtCursor(), RunSpaceFlight(), and TranslatePolledInputEvent().
| void QueueInputEventAtCursor | ( | unsigned short | type, |
| short | primaryButton, | ||
| short | secondaryButton ) |
Definition at line 63 of file eventmgr.c.
References QueueInputEvent(), QueueInputEventAtCursor(), stMouseCursorState, MouseCursorState::x, and MouseCursorState::y.
Referenced by DosMemcpy(), PollJoystickButtonEvents(), PollMenuInputDevices(), and QueueInputEventAtCursor().
Definition at line 525 of file eventmgr.c.
References bEventMouseCursorDrawnFlag, bMouseCursorDamagePending, CaptureMouseCursorBackground(), DIBupdate(), DrawMouseCursor(), nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMousePointerDamageTopValue, RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
Referenced by DosMemcpy(), RefreshMouseCursorDisplay(), and ThrottleFrameAndDrawFps().
Definition at line 411 of file eventmgr.c.
References RefreshMouseCursorHook().
Referenced by DrawMouseCursorIntoViewport(), and RefreshMouseCursorHook().
| void ReleaseInputEvent | ( | InputEvent * | event | ) |
Definition at line 101 of file eventmgr.c.
References aiInputEventSlotUsedTable, aInputEvtPool, and ReleaseInputEvent().
Referenced by DosMemcpy(), ReleaseInputEvent(), ReleaseInputEventQueue(), RemoveInputEvent(), and RetainInputEventsOfType().
Definition at line 164 of file eventmgr.c.
References InputEvent::next, pInputEventHead, pInputEventTail, ReleaseInputEvent(), and ReleaseInputEventQueue().
Referenced by DosMemcpy(), FlushInputEvents(), QueueInputEvent(), and ReleaseInputEventQueue().
Definition at line 663 of file eventmgr.c.
References ReleasePacketHandle(), and ReleaseUntaggedMemory().
Referenced by DosMemcpy(), and ReleaseUntaggedMemory().
| void RemoveInputEvent | ( | InputEvent * | event | ) |
Definition at line 202 of file eventmgr.c.
References InputEvent::next, pInputEventHead, pInputEventTail, InputEvent::previous, ReleaseInputEvent(), and RemoveInputEvent().
Referenced by DosMemcpy(), GetNextInputEvent(), and RemoveInputEvent().
| short __stdcall ResetAllocationDepth | ( | int | x, |
| int | y ) |
Definition at line 387 of file eventmgr.c.
References nMouseCursorShowCount, ResetAllocationDepth(), and void().
Referenced by DosMemcpy(), and ResetAllocationDepth().
Definition at line 781 of file eventmgr.c.
References ClearInputKeyStatePreservingModifiers(), and ResetInputKeyStatePreservingModifiers().
Referenced by ResetInputKeyStatePreservingModifiers().
Definition at line 494 of file eventmgr.c.
References abCursorSaveArea, bEventMouseCursorDrawnFlag, MouseCursorState::frame, nEventMousePointerDamageBottom, nMouseCursorDamageLeft, nMouseCursorDamageRight, nMouseCursorShowCount, nMousePointerDamageTopValue, nMousePointerDrawnX, nMousePointerDrawnY, RestoreMouseCursorBackground(), RestoreSpriteBackground(), MouseCursorState::shape, stMouseCursorState, and MouseCursorState::viewport.
Referenced by DIBslamReal(), DosMemcpy(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| void RetainInputEventsOfType | ( | int | type | ) |
Definition at line 179 of file eventmgr.c.
References InputEvent::next, pInputEventHead, pInputEventTail, InputEvent::previous, ReleaseInputEvent(), and RetainInputEventsOfType().
Referenced by DosMemcpy(), MoveMenuPointerFromKeyboard(), and RetainInputEventsOfType().
| int ScreenViewportHook | ( | void | ) |
Definition at line 1071 of file eventmgr.c.
References ScreenViewportHook().
Referenced by ScreenViewportHook().
Definition at line 1079 of file eventmgr.c.
References ScreenViewportResetHook().
Referenced by ScreenViewportResetHook().
| unsigned short __stdcall SelectDiskDriveHook | ( | short | drive | ) |
Definition at line 1175 of file eventmgr.c.
References SelectDiskDriveHook().
Referenced by DosMemcpy(), OpenDiskDataFile(), and SelectDiskDriveHook().
| void set_up_screen_viewport | ( | signed char | mode | ) |
Definition at line 1016 of file eventmgr.c.
References aScreenViewportGeometry, bCockpitlessView, cCurrentCockpitView, cScreenViewMode, ScreenViewportGeometry::height, nCurrentViewCenterPosX, nCurrentViewCenterPosY, nScreenHeight, nScreenWidth, nViewportOriginPositionX, nViewportOriginPositionY, ScreenViewportGeometry::originX, ScreenViewportGeometry::originY, pCurrentScreenViewportPkt, pScreenViewGeometry, set_up_screen_viewport(), and ScreenViewportGeometry::width.
Referenced by DosMemcpy(), initialize_cockpit(), and set_up_screen_viewport().
| void __stdcall SetFrameTimerAndWait | ( | short | period | ) |
Definition at line 610 of file eventmgr.c.
References SetFrameTimerAndWait(), SetFrameTimerPeriod(), and WaitForFrameTick().
Referenced by DosMemcpy(), InflightComputer(), and SetFrameTimerAndWait().
| void SetFrameTimerPeriod | ( | short | period | ) |
Definition at line 604 of file eventmgr.c.
References SetFrameTimerPeriod(), and SetMultimediaTimerCallback().
Referenced by DosMemcpy(), SetFrameTimerAndWait(), and SetFrameTimerPeriod().
| void __stdcall SetFrameTimerPeriodDirect | ( | short | p | ) |
Definition at line 617 of file eventmgr.c.
References SetFrameTimerPeriodDirect(), and SetMultimediaTimerCallback().
Referenced by AnimateTrainSimTitle(), BarracksScreen(), CloseLook(), DisplayTrainSimHighScoreTable(), DosMemcpy(), DrawFuneralLongShot(), funeral_wingman(), HandleSpaceFlightControls(), LoadOriginFxDrivers(), LongTalk(), PinMedal(), PlaySceneAnimation(), RecRoom(), SetFrameTimerPeriodDirect(), ShowCampaignVictorySequence(), and WaitForSceneAdvance().
| void SetInputKeyState | ( | int | scanCode, |
| unsigned char | pressed ) |
Definition at line 822 of file eventmgr.c.
References abInputKeyStateArray, ClearDebugPauseFlags(), PumpMessagesDuringWait(), SetInputKeyState(), and SystemDebugPrintf().
Referenced by DosMemcpy(), MainWindowProc(), and SetInputKeyState().
Definition at line 562 of file eventmgr.c.
References abCursorSaveArea, MouseCursorState::frame, nMouseCursorSavedCoordY, nMouseCursorSavedX, nMouseCursorShowCount, pDrawnMouseCursorShape, RestoreSpriteBackground(), SetMouseCursorShape(), MouseCursorState::shape, MouseCursorState::shapeChanged, stMouseCursorState, and MouseCursorState::viewport.
Referenced by DosMemcpy(), InflightComputer(), ResetMouseCursorFrame(), RunSpaceFlight(), SetMouseCursorShape(), UpdateRoomMenuCursor(), UpdateTitleMenuCursor(), and UpdateTrainSimMenuCursor().
| void __stdcall SetMouseHomePosition | ( | short | x, |
| short | y ) |
Definition at line 581 of file eventmgr.c.
References SetMouseHomePosition(), SetMousePositionDuplicate(), stMouseCursorState, MouseCursorState::x, and MouseCursorState::y.
Referenced by DosMemcpy(), SetMouseHomePosition(), and WarpMouseTo().
| unsigned int shrink | ( | int * | component | ) |
Definition at line 1235 of file eventmgr.c.
References shrink().
Referenced by DosMemcpy(), point_at(), shrink(), and shrink_vector().
| unsigned int shrink_vector | ( | FixedVector * | vector | ) |
Definition at line 1222 of file eventmgr.c.
References shrink(), shrink_vector(), FixedVector::x, FixedVector::y, and FixedVector::z.
Referenced by DosMemcpy(), point_at(), set_eye_direction_and_position(), and shrink_vector().
Definition at line 1161 of file eventmgr.c.
References ShutdownHook(), and void().
Referenced by DosMemcpy(), LogMemoryUsage(), main(), and ShutdownHook().
Definition at line 835 of file eventmgr.c.
References anEventObjectDepthPlacedList, anSortedObjects, asObjDistancesTable, asObjectScreenXList, sort_object_depth(), and SPACE_OBJECT_COUNT.
Referenced by DosMemcpy(), Draw_3Space_Frame(), ShowCarrierLaunchSequence(), and sort_object_depth().
| void StartupHook | ( | unsigned int(* | callback )(unsigned int, short) | ) |
Definition at line 1114 of file eventmgr.c.
References StartupHook(), and void().
Referenced by DosMemcpy(), main(), and StartupHook().
Definition at line 669 of file eventmgr.c.
References TimerResetHook().
Referenced by DosMemcpy(), FrameStartHook(), and TimerResetHook().
Definition at line 687 of file eventmgr.c.
References TimerStopHook().
Referenced by DosMemcpy(), MessagePumpHook(), and TimerStopHook().
| void TranslatePolledInputEvent | ( | unsigned short | type, |
| unsigned int | value ) |
Definition at line 36 of file eventmgr.c.
References aInputDevSamples, bHostPrimaryMouseButton, bHostSecondaryMouseButton, nCurrentActiveInputDevice, nHostMouseMessageX, nHostMouseMessageY, QueueInputEvent(), and TranslatePolledInputEvent().
Referenced by DosMemcpy(), get_player_input(), player_input(), and TranslatePolledInputEvent().
| int UntaggedMemoryHook | ( | void | ) |
Definition at line 657 of file eventmgr.c.
References UntaggedMemoryHook().
Referenced by UntaggedMemoryHook().
Definition at line 623 of file eventmgr.c.
References bFrameTickPendingFlag, and WaitForFrameTick().
Referenced by AnimateTrainSimTitle(), DosMemcpy(), SetFrameTimerAndWait(), and WaitForFrameTick().
|
static |
Definition at line 15 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), RestoreMouseCursorBackground(), and SetMouseCursorShape().
| unsigned char abInputKeyStateArray[0x80] |
Definition at line 29 of file eventmgr.c.
Referenced by ClearInputKeyState(), ClearInputKeyStatePreservingModifiers(), and SetInputKeyState().
| InputEvent aInputEvtPool[0x100] |
Definition at line 18 of file eventmgr.c.
Referenced by AllocateInputEvent(), and ReleaseInputEvent().
| int anEventObjectDepthPlacedList[SPACE_OBJECT_COUNT] |
Definition at line 32 of file eventmgr.c.
Referenced by sort_object_depth().
| short bCurrentExpandedMemoryAvail |
Definition at line 27 of file eventmgr.c.
Referenced by free_ship(), load_ship(), LoadOriginFxDrivers(), LoadSpaceflightResources(), and main().
| int bEventMouseCursorDrawnFlag |
Definition at line 23 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), RefreshMouseCursorDisplay(), and RestoreMouseCursorBackground().
| unsigned char bFilteredKeyWaitActive |
Definition at line 22 of file eventmgr.c.
Referenced by WaitForKeyExceptXOrF12().
| unsigned char bInputModeState |
Definition at line 21 of file eventmgr.c.
Referenced by BarracksScreen(), InflightComputer(), RecRoom(), RunSpaceFlight(), RunTrainSim(), SceneDirector(), SelectTrainSimMission(), ShowChalkBoard(), Title_Sequence(), ViewMedals(), WaitForInputKey(), and WaitForSceneAdvance().
| short DAT_0059a9f0 |
Definition at line 33 of file eventmgr.c.
Referenced by InitializeEventManagerResources(), and InitializeEventManagerTiming().
| short nCurrentViewCenterPosX |
Definition at line 25 of file eventmgr.c.
Referenced by draw_sorted_objects_to_buffer(), draw_target_box(), easy2see(), overlay_head_up_display(), set_up_screen_viewport(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowTigerClawEscapeScene(), and ShowVictoryScreen().
| short nCurrentViewCenterPosY |
Definition at line 26 of file eventmgr.c.
Referenced by auto_pilot_sequence(), draw_sorted_objects_to_buffer(), draw_target_box(), easy2see(), HandleSpaceFlightControls(), init_player_input(), overlay_head_up_display(), player_input(), RunSpaceFlight(), set_up_screen_viewport(), ShowCampaignVictorySequence(), ShowCarrierLaunchSequence(), ShowGameOverScreen(), ShowGetReadyScreen(), ShowTigerClawEscapeScene(), ShowVictoryScreen(), and Title_Sequence().
| short nEventManagerActive |
Definition at line 24 of file eventmgr.c.
Referenced by EMShutDown(), InitializeEventManager(), ShutdownEventManager(), and WaitForInputKey().
| int nMouseCursorSavedCoordY |
Definition at line 19 of file eventmgr.c.
Referenced by SetMouseCursorShape().
| int nMouseCursorSavedX |
Definition at line 20 of file eventmgr.c.
Referenced by SetMouseCursorShape().
| int nMousePointerDrawnX |
Definition at line 31 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), and RestoreMouseCursorBackground().
| int nMousePointerDrawnY |
Definition at line 30 of file eventmgr.c.
Referenced by CaptureMouseCursorBackground(), and RestoreMouseCursorBackground().
| short nPktDecompressSourceFile |
Definition at line 28 of file eventmgr.c.
Referenced by DecompressPacketSection().