Hi O_TaipaN,
here is my solution for zooming.
Because it is using the MouseAxisTrim function, it will work only in Target Script Editor.
It uses CSU/D hat for zooming IN and OUT. Zoomspeed is adjustable. SC-button is "quickback" Hotkey for FoV90.
It also switches TrackIR Precision mode ON when zooming. SC-button will disable it.
If you would like to test it, you need to adjust "Hold to Adjust Field of
View" = d in your game (Controls/Camera) and if you use TIR Precision hotkey, it has to be F9
Download Zoom.zip.
Extract anywhere you want
Open TARGET Script Editor, choose Menu/Open/...Zoom.tmc and click Open and Run.
Open the game and test. Make sure that "Hold to Adjust Field of View" = d and/or TIR Precision Hotkey = F9
You can also COPY/PASTE the red lines to your .tmc file.
Default location in Win7 C:\Users\USERNAME\AppData\Roaming\Thrustmaster\TAR GET\Scripts
Open TARGET Script Editor, choose Menu/Open.../TARGET/Scripts/xxx.tmc and click Open. Paste the lines somewhere between
if(Init(&EventHandle)) return 1; and
}
int EventHandle(int type, alias o, int x)
Then click Run and open the game.
Make sure that CSU, CSD and SC are empty in your tmc profile before COPY/PASTE.
Code:
include "target.tmh"
int main()
{
if(Init(&EventHandle)) return 1;
// COPY FROM HERE -----------------------------------------------------
// When the hat is pulled down...
MapKey(&Throttle, CSD, CHAIN(
D(),
DOWN+'d', // Activate "Hold to Adjust FoV" (D)
D(),
DOWN+USB[0x42], // Activate TIR Precision mode (F9)
REXEC(0, 30, "TrimDXAxis(MOUSE_Y_AXIS, 1);" // Zoomspeed = 30
)));
// When the hat is released...
MapKeyR(&Throttle, CSD, UP+'d'); // Deactivate "Hold to Adjust FoV"
// When the hat is pushed up...
MapKey(&Throttle, CSU, CHAIN(
D(),
DOWN+'d', // Activate "Hold to Adjust FoV" (D)
REXEC(0, 30, "TrimDXAxis(MOUSE_Y_AXIS, -1);" // Zoomspeed = 30
)));
// When the hat is released...
MapKeyR(&Throttle, CSU, UP+'d'); // Deactivate "Hold to Adjust FoV"
// When the SC-button is pressed down...
MapKey(&Throttle, SC, CHAIN(
UP+USB[0x42], // Deactivate TIR Precision mode (F9)
D(),
PULSE+USB[0x4E] // Quickback to FoV90
));
//When the SC-button is released
MapKeyR(&Throttle, SC, EXEC("TrimDXAxis(MOUSE_Y_AXIS, SET(0));")); // Reset the Mouse Y-axis back to middle
// TO HERE ---------------------------------------------------------------
}
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}
<S>koko