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

Joystick calibration and graphics setup data. More...

#include <signal.h>
#include "wc1.h"
#include <sys/types.h>

Go to the source code of this file.

Functions

void LoadJoystickCalibrationFile (short horizontalRange, short verticalRange, short horizontalDeadZone, short verticalDeadZone)
short ReadCalibratedJoystick (void)
void __stdcall UnionRectBounds (ShortRect *destination, const ShortRect *first, const ShortRect *second)

Variables

signed char acGraphicsModeByAnimationSpeed [8]
static char szTMDriverName [] = "TM.DRV"
static char szSuperTMDriverName [] = "SUPERTM.DRV"
signed char acShipRating [16]
short asObjScreenAngles [SPACE_OBJECT_COUNT]
short nTgtRange
unsigned int anVduModeCache [2]
signed char acObjOwnersTable [64]
signed char acShipTargetTable [16]
ShortVector stPreviousRotationInput
short anObjectYawRotation [SPACE_OBJECT_COUNT]
signed char acPilotHitPointsArray [16]
signed char acTurnRegulatorsArray [16]
unsigned char abCollisionAlertTargets [0x10]

Detailed Description

Joystick calibration and graphics setup data.

Address range 431a10-431eff. The rectangle helper at its end stays in this unit provisionally.

Definition in file joycal.c.

Function Documentation

◆ LoadJoystickCalibrationFile()

◆ ReadCalibratedJoystick()

◆ UnionRectBounds()

void __stdcall UnionRectBounds ( ShortRect * destination,
const ShortRect * first,
const ShortRect * second )

Variable Documentation

◆ abCollisionAlertTargets

unsigned char abCollisionAlertTargets[0x10]

Definition at line 36 of file joycal.c.

Referenced by clear_alert(), prevent_collision(), and start_collision_alert().

◆ acGraphicsModeByAnimationSpeed

signed char acGraphicsModeByAnimationSpeed[8]
Initial value:
= {
0x13, 0x0d, 4, 9, 7, 0, 0, 0
}

Definition at line 14 of file joycal.c.

Referenced by LoadOriginFxDrivers().

◆ acObjOwnersTable

◆ acPilotHitPointsArray

signed char acPilotHitPointsArray[16]

Definition at line 34 of file joycal.c.

Referenced by pilot_hit(), and set_objects_data().

◆ acShipRating

◆ acShipTargetTable

◆ acTurnRegulatorsArray

signed char acTurnRegulatorsArray[16]

Definition at line 35 of file joycal.c.

Referenced by find_next_ship_turn_slot(), and regulate_turn().

◆ anObjectYawRotation

◆ anVduModeCache

unsigned int anVduModeCache[2]

Definition at line 28 of file joycal.c.

Referenced by init_vdus(), InvalidateVduMode(), set_new_vdu(), and update_vid_disp().

◆ asObjScreenAngles

◆ nTgtRange

◆ stPreviousRotationInput

ShortVector stPreviousRotationInput

Definition at line 32 of file joycal.c.

Referenced by player_input().

◆ szSuperTMDriverName

char szSuperTMDriverName[] = "SUPERTM.DRV"
static

Definition at line 21 of file joycal.c.

◆ szTMDriverName

char szTMDriverName[] = "TM.DRV"
static

Definition at line 19 of file joycal.c.