Skip to content
/ RXI Public

🎮 ⚡ Ruby FFI for interacting with Xbox controllers on Windows.

License

Notifications You must be signed in to change notification settings

frissyn/RXI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RXI

RXI, or Ruby-XInput, is an FFI for the native XInput Windows API. RXI has some Quality of Life features, like namespaces and common enum values. It's currently a work in progress, and has only been tested with my wired Xbox One Controller on Windows 10, so use at your discretion. There's not even a gem yet, so you'll have to download or clone this repo to use it. =P

Quickstart

Vibrate a controller at a low motor speed:

require 'rxi'

RXI.enable(true)

controller = RXI::XboxController.new(0)
motorSpeed = RXI::Vibration::LOWER

loop do
    controller.vibrate(motorSpeed, motorSpeed)
end

Installation

RXI is not a gem yet, so git clone and require_relative will have to do for now.

Documentation

Coming Soon™️

About

🎮 ⚡ Ruby FFI for interacting with Xbox controllers on Windows.

Topics

Resources

License

Stars

Watchers

Forks

Languages