-
Notifications
You must be signed in to change notification settings - Fork 0
/
Star_Citizen_Zeplin_Profile-v0.1.tmc
61 lines (56 loc) · 2.38 KB
/
Star_Citizen_Zeplin_Profile-v0.1.tmc
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
// Part of Star_Citizen_Zeplin_Profile#.# keybinds packages
//---------------------------------------------------------------------------
//
// Star Citizen scripts from Zeplin for Warthog HOTAS from Thrustmaster
//
// Master Branch on GetHub: https://github.com/zeplintwo/Star_Citizen_Zeplin_TARGET_Profile
//
// Scripts and codes are inspired from ED and other sources. Aussiedroid has heavly influnced my coding for these scripts.
//
// Please report any bugs, features or suggestion to above script branch.
//
// This is a WIP there will be issues.
//
// Use SC_User-Setting-v#.#.ttm to adjust user preferances.
//
// Script is built on the basis of a default SC keybinds in v 3.9
//
// Use SC_Key_Defines-v#.#.ttm to adjust any changes to keybinds for script to function properly. I will try to keep up with changes as needed.
//
//---------------------------------------------------------------------------
include "target_zeplin_dx128-v0.1.tmh" //modded target.tmh file so that it looks diffrent from stock
include "SC_Key_Defines-v0.1.ttm" //Key defines for SC to TARGET scripting including the 128 DX Buttons for future usage
include "SC_Hardware-v0.1.ttm" //Hardware setup for the script
include "SC_User_Settings_v0.1.ttm" //User editable setting for the script
include "SC_Functions-v0.1.ttm" //Function for the script
include "SC_Macros-v0.1.ttm" //Macros to create diffrent funcanality
int AxisCurveProg,AxisCurvePrecision; //custom throttle list declares
//program startup
int main()
{
setExclusion();//block other Thrustmaster products
if(Init(&EventHandle)) return 1; // declare the event handler, return on error
SetKBRate(PulseLength, DelayLength);
SetKBLayout(KB_ENG);
//curve profiles for throttle single direction modes
AxisCurveProg = LIST(0,0, 35,25, 70,50, 80,75, 100,100);
AxisCurvePrecision = LIST(0,0, 25,10, 35,15, 45,20, 55,25, 65,30, 75,35, 100,40);
//add initialization code here
//Main code calls
initLEDClear();
initJoyMapAxis();
initThrottleMapAxis();
initFootMapAxis();
setJoystickCurves();
setThrottleCurves();
warthogJoyBinds();
warthogThrottleBinds();
initShieldManagment();
initScanViewHAT();
}
//event handler
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
//add event handling code here
}