Created
March 22, 2026 21:52
-
-
Save luckycdev/7598976b24a664be900029d5292f94e0 to your computer and use it in GitHub Desktop.
FreePIE GOI Steering Wheel Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x_sens = 0.0003 | |
| y_sens = 0.00005 | |
| deadzone = 0.02 | |
| toggle_key = Key.F6 | |
| if starting: | |
| enabled = False | |
| prev_toggle = False | |
| def dz(val): | |
| return 0 if abs(val) < deadzone else val | |
| if keyboard.getKeyDown(toggle_key) and not prev_toggle: | |
| enabled = not enabled | |
| prev_toggle = True | |
| elif not keyboard.getKeyDown(toggle_key): | |
| prev_toggle = False | |
| if enabled: | |
| x = dz(joystick[0].x) | |
| y = dz(joystick[0].y) | |
| mouse.deltaX = x * x_sens * 100 | |
| mouse.deltaY = y * y_sens * 100 | |
| else: | |
| mouse.deltaX = 0 | |
| mouse.deltaY = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment