Skip to content

LaurenzBeck/XInput.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 XInput.jl

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 😺

Stable Dev Build Status Coverage Code Style: Blue ColPrac: Contributor's Guide on Collaborative Practices for Community Packages Aqua


📦 Installation

In a Julia script:

using Pkg

Pkg.add("XInput")

or in the Julia REPL:

julia> ]  # enters the pkg interface
pkg> add XInput

🧑‍💻 Usage

  1. 🛜 make sure your controller is connected to your PC.
  2. 📦 import package: julia> using XInput.
  3. 🎮 get input from one of four connected devices: julia> state = get_state(0).
  4. 🔋 get information about the charging state of your controller: julia> battery = get_battery_information(0).
  5. 📳 set the vibration power of the two rumble motors of a controller: julia> rumble(0, 0.5, 0.2)

🖼️ ©️ Banner Artwork Attribution

Creative Commons License
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 ❤️

About

🎮 a Julia interface to the gamepad / (xbox-)controller win32 API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages