Site Tools
t2:gpc_scripting:usb_hid
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
t2:gpc_scripting:usb_hid [2021/03/27 05:53] scachi [Keyboard to Keyboard] |
t2:gpc_scripting:usb_hid [2024/04/07 03:00] (current) Scachi [GPC functions] |
||
---|---|---|---|
Line 22: | Line 22: | ||
When you want to forward mouse input or keyboard input use the corresponding _passthru function.\\ | When you want to forward mouse input or keyboard input use the corresponding _passthru function.\\ | ||
- | As soon as you want to alter the input before outputting it you need to be careful: | + | |
- | ||Combination of mouse_passthru() with mouse_set() : The first function will overwrite the output buffer with the latest data received from the connected mouse|| | + | **As soon as you want to alter the input before outputting it you need to be careful:** |
+ | || The last value set for a mouse filed is kept between main() iterations. Unless mouse_passthru() is called, which will overwrite the value set by the script.|| | ||
+ | **Meaning:** | ||
+ | ||If you use mouse_set() function to alter the mouse status (moving mouse/ pressing buttons) you need to always set all inputs each time (x,y,button,wheels) for the mouse to get no unwanted mouse movements/states. || | ||
More information:\\ | More information:\\ | ||
[[https://github.com/J2Kbr/TitanTwo/issues/232|mouse_passthru and mouse_set]] \\ | [[https://github.com/J2Kbr/TitanTwo/issues/232|mouse_passthru and mouse_set]] \\ |
t2/gpc_scripting/usb_hid.txt · Last modified: 2024/04/07 03:00 by Scachi