|
Wing Commander
Reconstructed Win32 source (1996)
|
Joystick calibration and graphics setup data. More...
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] |
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.
| void LoadJoystickCalibrationFile | ( | short | horizontalRange, |
| short | verticalRange, | ||
| short | horizontalDeadZone, | ||
| short | verticalDeadZone ) |
Definition at line 39 of file joycal.c.
References GetJoystickDevCaps(), LoadJoystickCalibrationFile(), nCurrentActiveInputDevice, nCurrentJoystickFailureValue, nCurrentJoystickLeftScale, nJoystickCalibrationMaximumX, nJoystickCalibrationMaxY, nJoystickCalibrationMinimumX, nJoystickCalibrationMinimumY, nJoystickCentreX, nJoystickCentreY, nJoystickDownScaleValue, nJoystickHorizontalDeadZone, nJoystickRightScale, nJoystickUpScale, nJoystickVertDeadZoneValue, nStickMaxX, nStickMaxY, nStickMinimumPositionX, nStickMinimumPositionY, and SampleBothJoysticks().
Referenced by CalibrateJoystickInteractive(), LoadJoystickCalibrationFile(), LoadOriginFxDrivers(), and PlaySfxWaveFileByNumber().
| short ReadCalibratedJoystick | ( | void | ) |
Definition at line 159 of file joycal.c.
References aInputDevSamples, InputDeviceSample::buttons, nCurrentActiveInputDevice, nCurrentJoystickFailureValue, nCurrentJoystickLeftScale, nCurrentJoystickRawCoordX, nCurrentJoystickRawCoordY, nJoystickCentreX, nJoystickCentreY, nJoystickDownScaleValue, nJoystickHorizontalDeadZone, nJoystickRightScale, nJoystickUpScale, nJoystickVertDeadZoneValue, nStickMaxX, nStickMaxY, nStickMinimumPositionX, nStickMinimumPositionY, ReadCalibratedJoystick(), SampleJoystickDevice(), InputDeviceSample::x, and InputDeviceSample::y.
Referenced by PlaySfxWaveFileByNumber(), ReadCalibratedJoystick(), and UpdateInputDeviceTransitions().
| void __stdcall UnionRectBounds | ( | ShortRect * | destination, |
| const ShortRect * | first, | ||
| const ShortRect * | second ) |
Definition at line 255 of file joycal.c.
References ShortRect::bottom, ShortRect::left, ShortRect::right, ShortRect::top, and UnionRectBounds().
Referenced by PlaySfxWaveFileByNumber(), RecRoom(), and UnionRectBounds().
| unsigned char abCollisionAlertTargets[0x10] |
Definition at line 36 of file joycal.c.
Referenced by clear_alert(), prevent_collision(), and start_collision_alert().
| signed char acGraphicsModeByAnimationSpeed[8] |
Definition at line 14 of file joycal.c.
Referenced by LoadOriginFxDrivers().
| signed char acObjOwnersTable[64] |
Definition at line 29 of file joycal.c.
Referenced by child_object(), draw_nav_pointer(), Explosion(), FF_missile_intelligence(), find_child_object(), find_child_ship(), house_keep_objects(), inflict_damage(), make_shard(), Mtarget_missile(), object_collision(), reposition_fixed_child_objects(), send_appropriate_message(), set_objects_data(), ShipExplosion(), the_creator(), and warp().
| signed char acPilotHitPointsArray[16] |
Definition at line 34 of file joycal.c.
Referenced by pilot_hit(), and set_objects_data().
| signed char acShipRating[16] |
Definition at line 25 of file joycal.c.
Referenced by BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), engage(), explode(), Explosion(), get_ship_max_velocity(), GetShipAccelerationRate(), init_intelligence_data(), internal_damage(), new_space_music_changes(), npc_communication(), PostMission(), process_maneuver_node(), real_vid_transmit(), remove_object(), request(), send_message(), and show_target_disp().
| signed char acShipTargetTable[16] |
Definition at line 30 of file joycal.c.
Referenced by any_enemy_tail(), approach_and_engage(), attacker_in_range(), BuildCommunicationCommandMenu(), BuildCommunicationRecipientMenu(), call_enemy(), capital_ship_intelligence(), chase_speed(), check_destroy_target(), check_engage_target(), check_target(), Chosen_communicate_option(), clean_up_cockpit(), cruise_to_destination(), cycle_onscreen_targets(), defend_mission(), destroyer_intelligence(), detect_enemy_tail(), draw_3d_scanner(), DrawTargetRangeReadout(), engage(), FF_missile_intelligence(), find_child_ship(), fire_players_lasers(), fire_turrets(), fire_weapon(), fire_when_ready(), FireOnAlternateTurns(), formation_break(), formation_burst(), get_color(), HandleSpaceFlightControls(), have_target(), heat_seeking_missile_intelligence(), in_danger(), intelligence_events(), is_ship_tailing_player_target(), kilrathi_wingman(), maneuvering(), missile_on_tail(), Mkill_missile(), object_intelligence(), overlay_head_up_display(), patrol_area(), perform_maneuver(), pick_regular_maneuver(), pop_flack(), request(), reset_tactic(), RestoreTransientCockpitGraphics(), scan_and_lock(), select_target(), set_eye_direction_and_position(), set_objects_data(), show_target_disp(), tanker_intelligence(), target_valid(), and target_within_range().
| signed char acTurnRegulatorsArray[16] |
Definition at line 35 of file joycal.c.
Referenced by find_next_ship_turn_slot(), and regulate_turn().
| short anObjectYawRotation[SPACE_OBJECT_COUNT] |
Definition at line 33 of file joycal.c.
Referenced by apply_force_to_object(), auto_pilot_sequence(), check_for_lost_control(), init_ijk(), players_flight_dynamics(), rotate_eye_to_goal(), rotate_object(), rotate_object_to_goal(), rotational_acceleration(), stationary_intelligence(), Title_Sequence(), try_far_spot(), and update_star_field().
| unsigned int anVduModeCache[2] |
Definition at line 28 of file joycal.c.
Referenced by init_vdus(), InvalidateVduMode(), set_new_vdu(), and update_vid_disp().
| short asObjScreenAngles[SPACE_OBJECT_COUNT] |
Definition at line 26 of file joycal.c.
Referenced by Create_explosion_debris(), CreateCannedSceneObject(), draw_nav_pointer(), draw_sorted_objects_to_buffer(), draw_target_box(), easy2see(), flip_angle(), get_right_shape(), InitializeConstellationObject(), intro_drawbackgroundships(), place_exhaust_on_ships(), reposition_fixed_child_objects(), set_background_objects_rotation(), set_objects_data(), ShowCarrierLaunchSequence(), start_dust(), and transform_objects_to_your_view().
| short nTgtRange |
Definition at line 27 of file joycal.c.
Referenced by any_enemy(), approach_and_engage(), attacker_in_range(), being_tailed(), chase_location(), chase_speed(), close_behind(), defend_mission(), escort_mission(), FF_missile_intelligence(), FindEnemyAimingWithinRange(), fire(), futurion_intelligence(), get_facing_range_from_object(), get_facing_range_from_point(), goto_formation(), goto_location(), heat_seeking_missile_intelligence(), house_keep_objects(), in_danger(), intelligence_events(), Mdrop_a_mine(), Mget_distance(), Mkill_missile(), Mram_missile(), Msit_n_fire(), Msit_n_spin(), Mtarget_missile(), Mveer_away(), patrol_area(), perform_maneuver(), prepare_for_jump(), scan_for_enemy(), and ShipAiState35().
| ShortVector stPreviousRotationInput |
Definition at line 32 of file joycal.c.
Referenced by player_input().