Sha256: 090a80d37e25ec9ddae0ddcdd5f96d18583c2fe2f572ee42b5b51d5b21d9f91b
Contents?: true
Size: 431 Bytes
Versions: 3
Compression:
Stored size: 431 Bytes
Contents
require 'artoo' connection :joystick, :adaptor => :joystick device :controller, :driver => :ps3, :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]}" } on controller, :button_square => proc { |*value| puts "l7 weenie!" } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
artoo-joystick-0.4.0 | examples/ps3_controller.rb |
artoo-joystick-0.3.0 | examples/ps3_controller.rb |
artoo-joystick-0.2.0 | examples/ps3_controller.rb |