A Crystal joystick controller using SDL, based on Artoo-Joystick gem.
Add it to Projectfile
deps do
github "https://github.com/juliancheal/crystal-joystick"
end
require "crystal-joystick"
joystick = CrystalJoystick::Adaptors::Joystick.new
joystick.connect
driver = CrystalJoystick::Drivers::Joystick.new(joystick)
driver.start_driver(0.1)
Currently only outputs to the command line And seems to use 100% of the cpu!!
TODO: Write instructions for development
- Fork it ( https://github.com/juliancheal/crystal-joystick/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- Julian Cheal(https://github.com/juliancheal) Julian Cheal - creator, maintainer