Introducing the Wiimote_sps Gem
Prerequisites
The Wiimote_sps gem relies upon the Simple_wiimote gem which uses the Cwiid gem which uses the Cwiid and Boost development libraries.
Installation
The libraries can easily be loaded on to your machine by apt-get installing libcwiid-dev and libboost-dev.
Type sudo apt-get install libcwiid-dev libboost-dev
Gem Installation
gem install wiimote_sps
Example
To Active the Wiimote, buttons 1 + 2 were pressed at the same time
require 'wiimote_sps'
wm = WiimoteSps.new sps_address: 'sps'
wm.activate
Observed:
MESSAGE: wiimote/input: button left pressed MESSAGE: wiimote/input: button down pressed MESSAGE: wiimote/input: button up pressed MESSAGE: wiimote/input: button b pressed MESSAGE: wiimote/input: button minus pressed MESSAGE: wiimote/input: button plus pressed MESSAGE: wiimote/input: button home pressed MESSAGE: wiimote/input: button 1 pressed MESSAGE: wiimote/input: button 2 pressed
To deactivate the Wiimote, buttons 1+2 were pressed at the same time.
Resources
- ?wiimote_sps https://rubygems.org/gems/wiimote_sps?
wiimotesps gem wiimote sps debian