-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnalog_WASD_Key_Defines.ttm
More file actions
135 lines (131 loc) · 5.79 KB
/
Analog_WASD_Key_Defines.ttm
File metadata and controls
135 lines (131 loc) · 5.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Part of Analog_WASD_Profile#.# keybinds packages
//---------------------------------------------------------------------------
// Keybinds for all Supported Devices
//---------------------------------------------------------------------------
int WarthogJoyBinds(){//Keybindings for the Warthog Joysick key assignments.
MapKey(&Joystick,TG1,0);
MapKey(&Joystick,TG2,DX1);
MapKeyIOUMD(&Joystick,S1,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,S2,0,0,0,0,0,0);
//MapKeyIOUMD(&Joystick,S3,0,0,0,0,0,0);//Reserved for IO activation
MapKeyIOUMD(&Joystick,S4,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H1R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H2R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H3R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4U,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4D,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4L,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4R,0,0,0,0,0,0);
MapKeyIOUMD(&Joystick,H4P,0,0,0,0,0,0);
if(Verbose) printf("---Warthog Joystick Binds Loaded.\xa \xa");
}
int WarthogThrottleBinds(){//Keybindings for the Warthog Throttle key assignments.
SetShiftButton(&Joystick, S3, &Throttle,BSF,BSB);
//MapKeyIOUMD(&Throttle, MSP,0,0,0,0,0,0); //Push to talk reserve
MapKeyIOUMD(&Throttle, MSU,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, MSR,0,0,0,EXEC("mDirBurst(ThrottleDown,ThrottleUp);"),0,0);
MapKeyIOUMD(&Throttle, MSD,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, MSL,0,0,0,EXEC("mDirBurst(ThrottleUp,ThrottleDown);"),0,0);
MapKeyIOUMD(&Throttle, SPDF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, SPDM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, SPDB,0,0,0,0,0,0);
//MapKeyIOUMD(&Throttle, BSF,0,0,0,0,0,0); //UMD activation reserve
//MapKeyIOUMD(&Throttle, BSM,0,0,0,0,0,0); //UMD activation reserve
//MapKeyIOUMD(&Throttle, BSB,0,0,0,0,0,0); //UMD activation reserve
MapKeyIOUMD(&Throttle, CHF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, CHB,0,0,0,0,0,0);
MapKey(&Throttle,PSF,EXEC("ExtComms();"));
MapKey(&Throttle,PSM,EXEC("IntComms();"));
MapKey(&Throttle,PSB,EXEC("BothComms();"));
MapKeyIOUMD(&Throttle, LTB,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EFLNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EFRNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EOLMOTOR,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EORMOTOR,0,0,0,0,0,0);
//MapKeyIOUMD(&Throttle, APUON,0,0,0,0,0,0); // Reserved for Analog WASD functaionality
//MapKeyIOUMD(&Throttle, APUOFF,0,0,0,0,0,0); // Reserved for Analog WASD functaionality
MapKeyIOUMD(&Throttle, LDGH,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, FLAPU,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, FLAPD,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EACON,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, RDRNRM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APENG,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APPAT,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APALT,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLERON,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLELON,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EOLIGN,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EORIGN,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, CSU,0,ThrustUp,0,ThrustUp,0,ThrustUp);
MapKeyIOUMD(&Throttle, CSD,0,ThrustDown,0,ThrustDown,0,ThrustDown);
MapKeyIOUMD(&Throttle, CSL,0,ThrustLeft,0,ThrustLeft,0,ThrustLeft);
MapKeyIOUMD(&Throttle, CSR,0,ThrustRight,0,ThrustRight,0,ThrustRight);
MapKeyIOUMD(&Throttle, EFLOVER,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EFROVER,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EACOFF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, RDRDIS,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APDIS,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLEROFF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, IDLELOFF,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EOLNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, EORNORM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, FLAPM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, CHM,0,0,0,0,0,0);
MapKeyIOUMD(&Throttle, APAH,0,0,0,0,0,0);
if(Verbose) printf("---Warthog Throttle Binds Loaded.\xa \xa");
}
int T16LeftBinds(){
MapKey(&T16000L, TS1,0);
MapKey(&T16000L, TS2,0);
MapKey(&T16000L, TS3,0);
MapKey(&T16000L, TS4,0);
MapKey(&T16000L, B5,EXEC("T16000Logic();"));//Reserved for PWM Logic
MapKey(&T16000L, B6,0);
MapKey(&T16000L, B7,0);
MapKey(&T16000L, B8,0);
MapKey(&T16000L, B9,0);
MapKey(&T16000L, B10,0);
MapKey(&T16000L, B11,0);
MapKey(&T16000L, B12,0);
MapKey(&T16000L, B13,0);
MapKey(&T16000L, B14,0);
MapKey(&T16000L, B15,0);
MapKey(&T16000L, B16,0);
MapKey(&T16000L, H1U,0); // 4 virtual keys generated by the joystick HAT
MapKey(&T16000L, H1R,0);
MapKey(&T16000L, H1D,0);
MapKey(&T16000L, H1L,0);
if(Verbose) printf("---T16000.m Left Binds Loaded.\xa \xa");
}
int T16RightBinds(){
MapKey(&T16000, TS1,0);
MapKey(&T16000, TS2,0);
MapKey(&T16000, TS3,0);
MapKey(&T16000, TS4,0);
MapKey(&T16000, B5,EXEC("T16000Logic();"));//Reserved for PWM Logic
MapKey(&T16000, B6,0);
MapKey(&T16000, B7,0);
MapKey(&T16000, B8,0);
MapKey(&T16000, B9,0);
MapKey(&T16000, B10,0);
MapKey(&T16000, B11,0);
MapKey(&T16000, B12,0);
MapKey(&T16000, B13,0);
MapKey(&T16000, B14,0);
MapKey(&T16000, B15,0);
MapKey(&T16000, B16,0);
MapKey(&T16000, H1U,0); // 4 virtual keys generated by the joystick HAT
MapKey(&T16000, H1R,0);
MapKey(&T16000, H1D,0);
MapKey(&T16000, H1L,0);
if(Verbose) printf("---T16000.m Right Binds Loaded.\xa \xa");
}