home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Gry
/
Jointstr
/
JSF_demo.exe
/
data1.cab
/
Misc
/
Controls
/
TM_F22.F22
< prev
next >
Wrap
Text File
|
1998-03-10
|
4KB
|
127 lines
REM F-22/TQS PROGRAMMING TEMPLATE
REM
REM F22 FILENAME: tm_f22.f22__ DESCRIPTION: Joint Strike Fighter___________
REM ________________________________________________________________________
REM
REM WRITTEN BY: Innerloop Technologies___________________ DATE: 12.08.79___
REM
REM
REM ************************PRELIMINARY SETTINGS**************************
REM
REM INCLUDE THE 'USE TQS' COMMAND TO USE YOUR TQS THROTTLE WITH THE F-22.
REM
USE WCS
REM
REM THE 'RATE nnnn' COMMAND IS USED TO CONTROL BUTTON PRESS AND RELEASE
REM RATES, WHERE nnnn IS A NUMBER BETWEEN 0-1000. ALWAYS TRY RATE 0 FIRST.
REM
RATE 100
REM
REM ***********************MACRO DEFINITION FILE***************************
REM
MDEF tm_f22
REM
REM CHANGE 'TEMPLATE' ABOVE TO THE NAME OF THE M22 FILE THAT YOU WANT YOUR
REM F22 FILE TO REFERENCE. FOR EXAMPLE, IF YOU CREATE A NEW F22 FILE FOR A
REM SIM CALLED NEWSIM.F22, YOU MIGHT WANT THE LINE ABOVE TO READ:
REM 'MDEF NEWSIM'
REM
REM ****************************F-22 SETTINGS******************************
REM
REM SETUP ANALOG JOYSTICK COMMANDS. THE FOLLOWING INSTRUCTIONS WILL
REM PRODUCE ANALOG JOYSTICK BUTTON OUTPUT FOR THE F-22 TRIGGER (TG1), AND
REM F-22 BUTTONS S2, S3, AND S4. DIGITAL COMMANDS CAN ALSO BE PROGRAMMED
REM TO THESE BUTTONS, IF DESIRED. IF ANALOG OUTPUT IS NOT DESIRED, SIMPLY
REM PLACE A 'REM' STATEMENT IN FRONT OF THE APPROPRIATE PORTBx LINE BELOW.
REM FOR MOST SITUATIONS, LEAVE 'PORTB1 IS TG1' AS IS AND REM OUT THE
REM REMAINING PORTBx LINES IN ORDER TO ASSIGN DIGITAL OUTPUT TO THEM.
REM
rem PORTB1 IS TG1
rem PORTB2 IS S2
rem PORTB3 IS S3
rem PORTB4 IS S4
REM
REM FIRST TRIGGER CLICK (DIGITAL OUTPUT). PLACE A 'REM' IN FRONT OF
REM THE BTN TG1 LINE IF ONLY ANALOG OUTPUT IS NEEDED.
REM
rem BTN TG1 FireWeapon
REM
REM SECOND TRIGGER CLICK
REM
BTN TG2 FireWeapon
REM
REM DIGITAL OUTPUT FOR BUTTONS S1 THRU S4 (S1=INDEX FINGER, S2=THUMB,
REM S3=PINKY, AND S4=PADDLE SWITCH ON FLCS).
REM
BTN S1 (FireCannon)
BTN S2 (ToggleATA)
BTN S3 (ToggleATG)
BTN S4
REM
REM HAT SWITCHES H1 THRU H4. EACH HAT SWITCH FUNCTIONS AS A 5-WAY SWITCH,
REM THE POSITIONS CORRESPONDING TO THE 4 BASIC DIRECTIONS, AND THE MIDDLE
REM POSITION.
REM
REM H1=LARGE HAT AT TOP OF FLCS
BTN H1U LookFront
BTN H1D LookBack
BTN H1L LookLeft
BTN H1R LookRight
BTN H1M
REM
REM H2=SMALL HAT BELOW BUTTON S2
BTN H2U MFDControl
BTN H2D MFDStatus
BTN H2L MFDInfo
BTN H2R MFDAttack
BTN H2M
REM
REM H3=SECOND LARGER HAT BELOW H1
BTN H3U MFDStrategic
BTN H3D MFDOffensive
BTN H3L (RadarZoomIn)
BTN H3R (RadarZoomOut)
BTN H3M
REM
REM H4=HAT ON LEFT SIDE OF F-22
BTN H4U TrimUp
BTN H4D TrimDowm
BTN H4L TrimLeft
BTN H4R TrimRight
BTN H4M
REM
REM ****************************TQS SETTINGS*******************************
REM
REM BUTTONS T1 THRU T10 ARE USED BY THE TQS.
BTN T1
BTN T2
BTN T3
BTN T4
BTN T5
BTN T6
BTN T7
BTN T8
BTN T9
BTN T10
REM BUTTONS T11-T14 CORRESPOND TO THE FOUR MOUSE DIRECTIONS, AND WILL
REM GENERATE A REPEATING CHARACTER AS LONG AS THE RED STICK BALL IS BEING
REM PRESSED. BUTTONS T11-T14 ARE DESIGNED FOR USE IN SIMS THAT DON'T
REM SUPPORT THE MOUSE DIRECTLY. IF YOUR SIM INCLUDES MOUSE SUPPORT, THEN
REM YOU SHOULD OMIT BUTTONS T11-T14.
BTN T11
BTN T12
BTN T13
BTN T14
REM
REM THROTTLE COMMANDS. NOTE: OMIT THE 'THR' STATEMENT TO USE THE THROTTLE AS
REM AN ANALOG DEVICE.
REM
rem THR
REM
REM USE THE MINIMUM THROTTLE BUTTON SETTING TO CONTROL THE THROTTLE WHEN
REM PULLED FULLY BACK.
REM
rem BTN MT
REM
REM ***********************************************************************