Site Tools
Sidebar
User's Manual
t2:mxyconverter_voffset
mxyconverter_voffset
mxyconverter_voffset — Set mouse vertical offset
Description
void mxyconverter_voffset(int16 offset);
Set the vertical offset value for the mouse movement input. Once the vertical offset is configured, it remains active until mxyconverter_voffset(0)
is called. The vertical offset is applied to the raw input value from the mouse direct connected to the Titan Two, simulating mouse movement on the Y axis.
Configuring the vertical and horizontal offsets is the best way to code anti-recoil scripts when mouse is used for aiming. By simulating mouse movement on the Y and X axis, the loaded Input Translator is able to proper make the MXY conversion and maintain the movement smooth. |
Parameters
- offset: Value to offset the mouse vertical movement raw input.
Return Value
No value is returned.
Examples
Example #1 mxyconverter_voffset() example
main { if(get_val(BUTTON_5)) { if(get_val(BUTTON_8)) { mxyconverter_voffset(28); // ADS Anti-Recoil } else { mxyconverter_voffset(20); // HIP Anti-Recoil } } else { mxyconverter_voffset(0); // Remove Anti-Recoil } }
See Also
t2/mxyconverter_voffset.txt · Last modified: 2018/11/23 12:24 by J2Kbr