0.0
No commit activity in last 3 years
No release in over 3 years
Uses a Wiimote to publish key presses to a SimplePubSub broker.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.0, ~> 0.6
~> 0.3, >= 0.3.7
 Project Readme

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

wiimotesps gem wiimote sps debian