-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
This page provides a brief description of each example included with this library.
-
enumerate.lua
-- simple demo that prints all connected WiiMotes twice and exits. -
info.lua
-- a little bigger example that reads static information about every WiiMote and prints it.
Basic (depend on lgi for polling functionality)
-
monitor.lua
-- more complicated demo that first prints all connected WiiMotes and then keeps printing newly connected ones. -
simple_read.lua
-- this demo opens first found WiiRemote (and so do following ones) and then prints button presses on it and ProController (if one is connected). -
set_led.lua
-- take input as one 4-char long string of 0's and 1's and set WiiRemote LEDs accordingly. Please note that this one may require root/sudo rights. -
test_rumble.lua
-- use ENTER to turn rumble on/off.
GUI examples (depend on lgi for polling functionality and GTK+)
-
buttons_demo.lua
/buttons_demo.glade
-- show fancy GTK+ window which display buttons currently pressed on your WiiRemote. -
ir_demo.lua
/area_demo.glade
-- draw IR sources reported by WiiRemote on the screen with dots (usingGtkDrawingArea
). -
movement_demo.lua
/area_demo.glade
-- show data reported by accelerometer or MotionPlus as lines likewiishow
does (usingGtkDrawingArea
). To use MotionPlus, pass any argument.