Well, it's actually interesting! Could you share this script and how do you implemented this? Even if we succeed in claim our RT toggle, could server as an example for others tasks.
Yes I can! But also, considering the script is run in TARGET, everyone might not be able to run it. Those people might want to try out this:
https://www.reddit.com/r/EliteDange...autohotkey_enable_relative_mouse_in_fao_mode/.
I don't want to use autohotkey because then it will spam a button on the keyboard. For me this is inconvenient. You could maybe write something that uses VJOY in order to avoid this. My script looks like this:
include "target.tmh"
//Define variables
int REXEC_run = 0;
int TS2_pressed = 0;
int main()
{
if(Init(&EventHandle)) return 1;
// Set TS2_pressed flag in order to notify REXEC loop to release TS2 button if necessary.
// Toggles REXEC_run flag in order to turn off/on REXEC loop.
// Presses DX24 button down. This is done for activating fa off/on.
MapKey(&T16000L, TS2,
EXEC(
"TS2_pressed = 1;"
"if (REXEC_run){REXEC_run=0;} else{REXEC_run=1;}"
"ActKey(KEYON+DOWN+DX24);"
)
);
// DX24 button is released if TS2_pressed flag is set.
// When TS2 button is released, start clicking DX30 button every 125 ms.
// DX30 stops clicking once the REXEC_run flag is set.
MapKeyR(&T16000L, TS2,
REXEC(0, 125,(
"if (TS2_pressed) {ActKey(KEYON+UP+DX24); TS2_pressed=0;}"
"if (REXEC_run) {ActKey(KEYON+DOWN+DX30); DeferCall(1, &ActKey, KEYON+UP+DX30); } else {StopAutoRepeat(0);}"
),RNOSTOP));
// A second button is used for resetting the script. By pressing TS4, the REXEC_flag is set to zero.
// DX31 is pressed.
MapKey(&T16000L, TS4, EXEC(
"REXEC_run=0;"
"ActKey(KEYON+DOWN+DX31);"
));
// DX31 is released.
MapKeyR(&T16000L, TS4, EXEC(
"ActKey(KEYON+UP+DX31);"
));
}
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}
* When the TS2 button on my t16000m is pressed, the DX24 button is pressed. Pressing DX24 the first time is used for activating FA OFF. When the TS2 button is released, DX30 will start clicking every 125 ms. Thus you will have something similar as relative mouse in the game.
* By pressing the TS2 button a second time you will activate FA ON. "relative mouse" effect will also be deactivated.
* The TS4 button is used if something has gone wrong (for example the "relative mouse" effect might become actiavted when you're using FA ON). Clicking this button will reset the script.
It is also important to note that you need to turn off relative mouse in the game for this to work. Also, in order for the mouse to be reset to center, you will need to bind DX30 (which was used in this script) to reset mouse in the game.
A further improvement to this might be to reset the mouse coordinates to center instead of spamming the joystick button to do it. I have succeeded in doing this, but this does not register in the game for some reason.
I am sorry if this seems a bit messy. I suck at explaining things!
