|
Wing Commander II
Reconstructed Win32 source (1996)
|
Joystick calibration, title menu and barracks screen. More...
#include "game.h"Go to the source code of this file.
Macros | |
| #define | TITLEMNU_C |
Functions | |
| void | CalibrateJoystickInteractive () |
| void | WaitForJoystickButtonRelease (void) |
| void | WaitForJoystickButtonPress (void) |
| short | RunCampaignSelectionFrame (void *scene, void *field) |
| short | RunTitleMenuInputLoop (unsigned char *buttons, unsigned char *logo, unsigned char *background, short showSecondButton) |
| short | RunTitleScreen (void) |
| short | BarracksScreen (void) |
Joystick calibration, title menu and barracks screen.
Definition in file titlemnu.c.
| #define TITLEMNU_C |
Definition at line 6 of file titlemnu.c.
| short BarracksScreen | ( | void | ) |
Definition at line 499 of file titlemnu.c.
References AllocateViewport(), BarracksScreen(), Viewport::bottom, ClearViewport(), DisableMouseCursorDrawing(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), free_viewport(), FreePacketAndClear(), g_2_stModalSourceWindow, g_cSecondaryViewBufferColour, g_pConstellationSprite, g_stSecondaryViewBufferBlock, init_constellation(), InitializeConstellationField(), Viewport::left, LoadNamedPacket(), ReportFatalErrorCode(), Viewport::right, RunCampaignSelectionFrame(), SetInputViewport(), SetMenuInputPump(), SetPersonnelMousePosition(), Viewport::top, and WaitForSceneAdvance().
Referenced by BarracksScreen(), and RunGameApplication().
| void CalibrateJoystickInteractive | ( | ) |
Definition at line 10 of file titlemnu.c.
References TextContext::alignment, CalibrateJoystickInteractive(), DIBslamReal(), g_12_nControllerLeftScaleValue, g_12_nJoystickDownScaleWord, g_12_nJoystickMinimumXNumber, g_1_nJoystickCentreXNumber, g_1_nJsRightScaleWord, g_2_nJoystickCentreY, g_2_nJsMinimumY, g_36_apTextGlyphs, g_3_nControllerHorizontalRange, g_3_stDefaultStringContext, g_4_nControllerFailureValue, g_4_nJoystickMaximumXValue, g_59_nJoystickUpScaleWord, g_8_nActiveInputDeviceWord, g_bPrimaryViewBufferColour, g_cSecondaryViewBufferColour, g_nJoystickMaximumY, g_nJoystickVerticalRangeNumber, InitializeTextContextFromFont(), LoadJoystickCalibrationFile(), ReleaseModalTextPanel(), ReleaseTextFont(), SampleJoystickDevice(), ShowModalTextPanel(), WaitForJoystickButtonPress(), WaitForJoystickButtonRelease(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by CalibrateJoystickInteractive(), HandleSpaceFlightControls(), and PollSceneHotspotInput().
Definition at line 184 of file titlemnu.c.
References CopyViewportContents(), DisableMouseCursorDrawing(), DrawConstellationField(), DrawFormattedText(), DrawSpriteDefault(), EnableMouseCursorDrawing(), g_101_stScrViewInfo, g_3_stDefaultStringContext, g_bPrimaryViewBufferColour, g_bSceneEscapeRequested, g_pszPersonnelFooter, g_stSecondaryViewBufferBlock, InitializeTextContextFromFont(), MeasureTextPixelWidthClamped(), PollSceneHotspotInput(), RunCampaignSelectionFrame(), SetTextCursor(), TextContext::viewport, and WaitForVerticalBlankThunk().
Referenced by BarracksScreen(), and RunCampaignSelectionFrame().
| short RunTitleMenuInputLoop | ( | unsigned char * | buttons, |
| unsigned char * | logo, | ||
| unsigned char * | background, | ||
| short | showSecondButton ) |
Definition at line 222 of file titlemnu.c.
References ClearDebugPauseFlags(), DrawConstellationField(), DrawSpriteDefault(), g_bKeyboardMouseEnabled, g_stSecondaryViewBufferBlock, PollSceneHotspotInput(), PumpWindowMessages(), RefreshMemoryStatusOverlay(), ReleaseInputEventQueue(), and RunTitleMenuInputLoop().
Referenced by RunTitleMenuInputLoop(), RunTitleScreen(), and UpdateShipTurretGuns().
| short RunTitleScreen | ( | void | ) |
Definition at line 262 of file titlemnu.c.
References AdvanceViewportWipe(), AllocateTaggedMemory(), AllocateViewport(), Viewport::bottom, ClearDebugPauseFlags(), ClearViewport(), CopyViewportContents(), DIBslamReal(), DisableMouseCursorDrawing(), DrawConstellationField(), DrawSpriteDefault(), EnableMouseCursorDrawing(), FetchDiskPacketRetrying(), FinishViewportWipe(), FlushInputEvents(), FlushSoundEffectsAndLog(), free_viewport(), FreePacketAndClear(), g_101_stScrViewInfo, g_18_nInterfaceEventMode, g_2_stModalSourceWindow, g_bNewPilotCampaignInitialized, g_bRoomTransitionAnimationEnabled, g_bSceneEscapeRequested, g_cSecondaryViewBufferColour, g_pConstellationSprite, g_stSecondaryViewBufferBlock, HasSavedPilotCampaign(), init_constellation(), InitializeConstellationField(), InitializeViewportWipe(), Viewport::left, MarkDibDirty(), PlaySfxWaveFileByNumber(), PreloadMusicTrack(), PumpWindowMessages(), RefreshMemoryStatusOverlay(), ReleaseMusicTrack(), ReleasePacketHandle(), ReportFatalErrorCode(), Viewport::right, RunTitleMenuInputLoop(), RunTitleScreen(), SetFrameTimerAndWait(), SetInputViewport(), SetMenuInputPump(), SetPersonnelMousePosition(), spacetrack(), StopMusicUnlessSuppressed(), TakeInputPressCount(), Viewport::top, void(), and WaitForInputKey().
Referenced by CollectRasterClipColours(), RunGameApplication(), and RunTitleScreen().
Definition at line 171 of file titlemnu.c.
References g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, SampleJoystickDevice(), ServiceSoundSystem(), and WaitForJoystickButtonPress().
Referenced by CalibrateJoystickInteractive(), and WaitForJoystickButtonPress().
Definition at line 158 of file titlemnu.c.
References g_8_nActiveInputDeviceWord, g_aInputDeviceSamplesList, SampleJoystickDevice(), ServiceSoundSystem(), and WaitForJoystickButtonRelease().
Referenced by CalibrateJoystickInteractive(), and WaitForJoystickButtonRelease().