Sha256: cca88473d8162ff5d247ad2ab3dd90e9afe4c83369b977f8c99af25942fdcaab
Contents?: true
Size: 359 Bytes
Versions: 3
Compression:
Stored size: 359 Bytes
Contents
require 'artoo' connection :joystick, :adaptor => :joystick device :controller, :driver => :joystick, :connection => :joystick, :interval => 0.1 work do on controller, :joystick => proc { |*value| puts "joystick #{value[1][:s]} x:#{value[1][:x]} y:#{value[1][:y]}" } on controller, :button => proc { |*value| puts "button #{value[1]}" } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
artoo-joystick-0.4.0 | examples/controller.rb |
artoo-joystick-0.3.0 | examples/controller.rb |
artoo-joystick-0.2.0 | examples/controller.rb |