Project

wii4r

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby C Extension for controlling Wii Remote devices via bluetooth connection. Binding of C wiiuse library (www.wiiuse.net)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.8.3, < 0.9
 Project Readme

Wii4R¶ ↑

Ruby C Extension for controlling Wii Remote devices via bluetooth connection. Binding of C wiiuse library (www.wiiuse.net)

Install¶ ↑

On a supported platform (x86 linux):

$ gem install wii4r

On other platforms:

$ extract the source
$ rake native gem
$ cd pkg
$ gem install wii4r-0.5.0-<platform>.gem

Dependencies¶ ↑

  • wiiuse lib (www.wiiuse.net) (lacks of speaker support and small fixes)

  • wiiuse_fork (github) (lacks of speaker support as for now)

  • rake (>= 0.8.3 and < 0.9)

  • rake-compiler (>= 0.7.0)

Usage¶ ↑

 require 'wii4r'
 include Wii

 w = WiimoteManager.new
 w.connect
 w.poll do |(wiimote, event)|
 	if event == :generic
		if wiimote.pressed? BUTTON_A
			puts "button a pressed!"
		end
	end
 end

See rdoc documentation for more details

Copyright © 2009 KzMz & BuZz.

LICENSE for details