Originally posted by RaidAW
the little 'joystick' on ch throttle?
I can't find anything to do with it and it is bugging me.
I use it to control my views. Below is the script. You need to program cms buttons 9-16 to activeX buttons and use the pinky button as a shift key.
Example cms button 9 normal = control1-button 9, shift=control1-button 17, so on through button 16, then map these buttons in AH. Map the shifted buttons to the up views.
I use a combined map that combines all controllers into 1 virtual controller.
(variable B99 has to do with another script I use that locks views using the castle hat on the flight stick. I can be removed from this script if used stabd alone)
//Microstick
SELECT (JS2.A1, RANGE) OF
CASE 0: //BACK
A1=1;
B1=TRUE;
BREAK;
CASE 85: //CENTER
A1=2;
B1=FALSE;
BREAK;
CASE 170: //FORWARD
A1=3;
B1=TRUE;
BREAK;
ENDSELECT
SELECT (JS2.A2, RANGE) OF
CASE 0: //LEFT
A2=1;
B2=TRUE;
BREAK;
CASE 85: //CENTER
A2=2;
B2=FALSE;
BREAK;
CASE 170: //RIGHT
A2=3;
B2=TRUE;
BREAK;
ENDSELECT
//CENTER
IF ((NOT B1 AND NOT B2) AND NOT B99) THEN
cms.b9=false;
cms.b10=false;
cms.b11=false;
cms.b12=false;
cms.b13=false;
cms.b14=false;
cms.b15=false;
cms.b16=false;
ENDIF
//FORWARD
IF ([A1==3] AND [A2==2]) THEN
cms.b9=TRUE;
cms.b10=false;
cms.b11=false;
cms.b12=false;
cms.b13=false;
cms.b14=false;
cms.b15=false;
cms.b16=false;
ENDIF
//RIGHT
IF ([A1==2] AND [A2==3]) THEN
cms.b9=false;
cms.b10=TRUE;
cms.b11=false;
cms.b12=false;
cms.b13=false;
cms.b14=false;
cms.b15=false;
cms.b16=false;
ENDIF
//BACK
IF ([A1==1] AND [A2==2]) THEN
cms.b9=false;
cms.b10=false;
cms.b11=TRUE;
cms.b12=FALSE;
cms.b13=false;
cms.b14=false;
cms.b15=false;
cms.b16=false;
ENDIF
//LEFT
IF ([A1==2] AND [A2==1]) THEN
cms.b9=false;
cms.b10=false;
cms.b11=false;
cms.b12=TRUE;
cms.b13=FALSE;
cms.b14=false;
cms.b15=false;
cms.b16=false;
ENDIF
//FORWARD RIGHT
IF ([A1==3] AND [A2==1]) THEN
cms.b9=false;
cms.b10=false;
cms.b11=false;
cms.b12=false;
cms.b13=TRUE;
cms.b14=false;
cms.b15=false;
cms.b16=false;
ENDIF
//BACK RIGHT
IF ([A1==1] AND [A2==1]) THEN
cms.b9=false;
cms.b10=false;
cms.b11=false;
cms.b12=false;
cms.b13=false;
cms.b14=TRUE;
cms.b15=false;
cms.b16=false;
ENDIF
//BACK LEFT
IF ([A1==1] AND [A2==3]) THEN
cms.b9=false;
cms.b10=false;
cms.b11=false;
cms.b12=false;
cms.b13=false;
cms.b14=false;
cms.b15=TRUE;
cms.b16=false;
ENDIF
//FORWARD LEFT
IF ([A1==3] AND [A2==3]) THEN
cms.b9=false;
cms.b10=false;
cms.b11=false;
cms.b12=false;
cms.b13=false;
cms.b14=false;
cms.b15=false;
cms.b16=TRUE;
ENDIF