Well that sucks. So rather than an elegant solution, I have to write a page full of constants :/
// MapKey(&Joystick, H3U, EXEC("initPIPManagement();"));
// MapKey(&Joystick, H3D, EXEC("initPIPManagement();"));
// MapKey(&Joystick, H3L, EXEC("initPIPManagement();"));
// MapKey(&Joystick, H3R, EXEC("initPIPManagement();"));
if(UserPIPPref == 0) {
MapKey(&Joystick, H3U, TEMPO(
EXEC("initPIPMapper(ENG,SYS);"), PowerEng,
PIPPressDelay));
MapKey(&Joystick, H3D, TEMPO(
EXEC("initPIPMapper(SYS,WEP,MID);"), BalancePower,
PIPPressDelay));
MapKey(&Joystick, H3L, TEMPO(
EXEC("initPIPMapper(SYS,WEP);"), PowerSys,
PIPPressDelay));
MapKey(&Joystick, H3R, TEMPO(
EXEC("initPIPMapper(WEP,SYS);"), PowerWep,
PIPPressDelay)); }
...etc.
How exactly can I bind a key to running a function?
I tried
MapKey(&Peripheral, ResKey, firstCommand(Reset));
but doing so instantly executed it.
One last problem: this may sound dumb, but I can't for the life of me find a way to straight out send a bunch of commands to the game during the execution of a function.
Button 1 is mapped to execute myFunction(). myFunction should send a number of commands to the game based on any number of things - and I'm struggling to make it do just that.
Perhaps, could it be that any submission of directX button must be forcibly bound to a key, and never sent via a method?
Hi AD,
Re the PIP Manager thing...I've had a play and here's some interesting observations...
1) In initPIPManagement() function you do not need the "if(Joystick[H3x])" in front of each MapKey statement
2) If you move the code inside initPIPManagement function into the "tmc" file, everything works fine !!!
The only real difference here is we MapKey each key once only.
Code:// MapKey(&Joystick, H3U, EXEC("initPIPManagement();")); // MapKey(&Joystick, H3D, EXEC("initPIPManagement();")); // MapKey(&Joystick, H3L, EXEC("initPIPManagement();")); // MapKey(&Joystick, H3R, EXEC("initPIPManagement();")); if(UserPIPPref == 0) { MapKey(&Joystick, H3U, TEMPO( EXEC("initPIPMapper(ENG,SYS);"), PowerEng, PIPPressDelay)); MapKey(&Joystick, H3D, TEMPO( EXEC("initPIPMapper(SYS,WEP,MID);"), BalancePower, PIPPressDelay)); MapKey(&Joystick, H3L, TEMPO( EXEC("initPIPMapper(SYS,WEP);"), PowerSys, PIPPressDelay)); MapKey(&Joystick, H3R, TEMPO( EXEC("initPIPMapper(WEP,SYS);"), PowerWep, PIPPressDelay)); } ...etc.
Why? who knows...I'd say this is a bug in the TARGET script code or compiler somewhere.
Clicker
p.s Thrustmaster have released new versions of the firmware and TARGET
...and one more thing...
Aussiedroid...they've changed the TARGET font in the "console view" when running the script, which munts your formatting!
If you know how to reset this, please let me know.
Clicker
Playing in Borderless mode, 2 side screens for discord and "my notes".
Sometimes it seems ED lost focus, even if it seems to have it. Then Only "Alt-Tabbing" to ED brings back the focus.
Shrugs
hi Aussiedroid is it safe to upgrade now to new versions of the firmware and target software also thanks for your good work.[yesnod]