https://github.com/scaledteam/mouse2joystick
Linux program to translate mouse input into joystick input
https://github.com/scaledteam/mouse2joystick
evdev joystick linux trackmania uinput
Last synced: about 1 year ago
JSON representation
Linux program to translate mouse input into joystick input
- Host: GitHub
- URL: https://github.com/scaledteam/mouse2joystick
- Owner: scaledteam
- License: unlicense
- Created: 2024-04-10T12:52:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T12:59:32.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T15:44:43.321Z (about 1 year ago)
- Topics: evdev, joystick, linux, trackmania, uinput
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mouse2joystick
Linux program to translate mouse input into joystick input. Based on uinput and evdev. Initially made to imitate GTA 5 mouse steering in Trackmania Nations Forever.
## Compiling
Default input device is "/dev/input/event25". To compile code, run:
```
sudo ./mouse2joystick.c
```
It's self-compiling code, it will compile itself and run.
## Usage
When program is activated, press any side mouse button to grab mouse, and hold left mouse button to steer. To ungrab devide, press side button again.