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

Joystick sampling. More...

#include "game.h"

Go to the source code of this file.

Functions

short SampleBothJoysticks (InputDeviceSample *samples, unsigned int fallback)
void SampleJoystickDevice (InputDeviceSample *samples, short joystick, unsigned int fallback)
short ReadJoystickButtons (void)
void SampleActiveJoystickDevice (void)

Variables

short g_8_nActiveInputDeviceWord
int g_nControllerVerticalDeadZoneWord
int g_nJoystickHorizDeadZone
int g_26_nUnusedControllerNumber [3]
int g_59_nJoystickUpScaleWord
int g_12_nControllerLeftScaleValue
int g_4_nJoystickMaximumXValue
int g_nJoystickMaximumY
int g_12_nJoystickMinimumXNumber
int g_2_nJsMinimumY
int g_nJoystickVerticalRangeNumber
int g_3_nControllerHorizontalRange
int g_1_nJsRightScaleWord
int g_12_nJoystickDownScaleWord
int g_2_nJoystickCentreY
int g_1_nJoystickCentreXNumber
int g_4_nControllerFailureValue
char g_nUnusedJsWord
InputDeviceSample g_aInputDeviceSamplesList [2]
short g_3_nFlightControlCommandValue
char g_16_nUnusedJoystickWord

Detailed Description

Joystick sampling.

Definition in file joystick.c.

Function Documentation

◆ ReadJoystickButtons()

short ReadJoystickButtons ( void )

Definition at line 40 of file joystick.c.

References GetJoystickButtons(), and ReadJoystickButtons().

Referenced by ReadJoystickButtons().

◆ SampleActiveJoystickDevice()

void SampleActiveJoystickDevice ( void )

◆ SampleBothJoysticks()

short SampleBothJoysticks ( InputDeviceSample * samples,
unsigned int fallback )

Definition at line 9 of file joystick.c.

References GetJoystickPosition(), and SampleBothJoysticks().

Referenced by LoadJoystickCalibrationFile(), and SampleBothJoysticks().

◆ SampleJoystickDevice()

Variable Documentation

◆ g_12_nControllerLeftScaleValue

int g_12_nControllerLeftScaleValue

◆ g_12_nJoystickDownScaleWord

int g_12_nJoystickDownScaleWord

◆ g_12_nJoystickMinimumXNumber

int g_12_nJoystickMinimumXNumber

◆ g_16_nUnusedJoystickWord

char g_16_nUnusedJoystickWord

Definition at line 77 of file joystick.c.

◆ g_1_nJoystickCentreXNumber

int g_1_nJoystickCentreXNumber

◆ g_1_nJsRightScaleWord

int g_1_nJsRightScaleWord

◆ g_26_nUnusedControllerNumber

int g_26_nUnusedControllerNumber[3]

Definition at line 60 of file joystick.c.

◆ g_2_nJoystickCentreY

int g_2_nJoystickCentreY

◆ g_2_nJsMinimumY

int g_2_nJsMinimumY

◆ g_3_nControllerHorizontalRange

int g_3_nControllerHorizontalRange

Definition at line 68 of file joystick.c.

Referenced by CalibrateJoystickInteractive().

◆ g_3_nFlightControlCommandValue

short g_3_nFlightControlCommandValue

Definition at line 76 of file joystick.c.

Referenced by InitializeSpaceFlightInput().

◆ g_4_nControllerFailureValue

int g_4_nControllerFailureValue

◆ g_4_nJoystickMaximumXValue

int g_4_nJoystickMaximumXValue

◆ g_59_nJoystickUpScaleWord

int g_59_nJoystickUpScaleWord

◆ g_8_nActiveInputDeviceWord

◆ g_aInputDeviceSamplesList

◆ g_nControllerVerticalDeadZoneWord

int g_nControllerVerticalDeadZoneWord

Definition at line 58 of file joystick.c.

Referenced by LoadJoystickCalibrationFile(), and ReadCalibratedJoystick().

◆ g_nJoystickHorizDeadZone

int g_nJoystickHorizDeadZone

Definition at line 59 of file joystick.c.

Referenced by LoadJoystickCalibrationFile(), and ReadCalibratedJoystick().

◆ g_nJoystickMaximumY

int g_nJoystickMaximumY

◆ g_nJoystickVerticalRangeNumber

int g_nJoystickVerticalRangeNumber

Definition at line 67 of file joystick.c.

Referenced by CalibrateJoystickInteractive().

◆ g_nUnusedJsWord

char g_nUnusedJsWord

Definition at line 74 of file joystick.c.