Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

juliancheal/crystal-joystick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crystal Joystick

A Crystal joystick controller using SDL, based on Artoo-Joystick gem.

Installation

Add it to Projectfile

deps do
  github "https://github.com/juliancheal/crystal-joystick"
end

Usage

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!!

Development

TODO: Write instructions for development

Contributing

  1. Fork it ( https://github.com/juliancheal/crystal-joystick/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

SDL Powered Joysticks written in Crystal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published