a Julia interface to the gamepad / (xbox-)controller win32 API.
🤚
⚠️ this is my first Julia package, which I mainly wrote to get some experience using the language, so expect some beginners mistakes 😺
In a Julia script:
using Pkg
Pkg.add("XInput")
or in the Julia REPL:
julia> ] # enters the pkg interface
pkg> add XInput
- 🛜 make sure your controller is connected to your PC.
- 📦 import package:
julia> using XInput
. - 🎮 get input from one of four connected devices:
julia> state = get_state(0)
. - 🔋 get information about the charging state of your controller:
julia> battery = get_battery_information(0)
. - 📳 set the vibration power of the two rumble motors of a controller:
julia> rumble(0, 0.5, 0.2)
The art in the banner of this README is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. It was made by ljdesigner. Check out his beautiful artwork ❤️