Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wii Remotes on Linux using.NET Bindings for libcwiid Jestin Stoffel -

Similar presentations


Presentation on theme: "Wii Remotes on Linux using.NET Bindings for libcwiid Jestin Stoffel -"— Presentation transcript:

1 Wii Remotes on Linux using.NET Bindings for libcwiid Jestin Stoffel - jestin.stoffel@gmail.com jestin.stoffel@gmail.com

2 Wii Remotes Multi-Input Device 7 Buttons D-Pad Accelerometer Infrared Sensor/Camera Extension Port

3 Wii Remotes Multi-Output Device 4 LEDs Rumbler Speaker Communicates with Wii / Computer via Bluetooth

4 .NET Microsoft created competitor to Sun Microsystem's Java Incorporates multiple languages that compile into the same bytecodes, meaning code written in one langauge can be called in another C# is the flagship language of the.NET platform

5 Mono Project Open source cross- platform runtime environment for.NET NOT created by Microsoft Enables.NET code to be run on Linux and Apple's OSX Created Gtk widget bindings (Gtk#) for cross- platform applications

6 cwiid Linux library for communicating with the Wii Remote Written in C Not complete (but no Wii Remote library is) Linux only

7 Putting It All Together.NET Bindings libbluetooth libcwiid Wrapper Class Easy to use Wiimote class

8 Code Example

9 Reporting Modes STATUS BTN ACC IR NUNCHUK CLASSIC EXT

10 Delegates Remote Delegates ButtonHandler RawAccelHandler BufferedAccelHandler IRHandler Extension Delegates NunchukButtonHandler NunchukAccelHandler NunchuckStickHandler No Classic Controller support yet

11 Interpreting Accelerometer Data 3-axis accelerometer Pitch and roll can be calculated by measuring gravity Yaw must be calculated by using the IR sensor

12 Calculating Pitch and Roll Pitch = asin(y / 1g) Roll = asin(x / 1g) Note: x and y need to be converted to vary between -1 and 1, otherwise asin is undefined Calibration is required

13 Tips and Tricks Accelerometer Buffering Normalizes input Allows higher precision Setting Minimum Response Intervals Specify the minimum time that must pass before recieving input from a delegate Never recieve an event until it's needed

14 Where do I get MonoWii? From the cwiid subversion repository http://abstrakraft.org/cwiid/svn/ From me jestin.stoffel@gmail.com

15 References and Thanks wiili.org Home of all things Wii on Linux wiibrew.org Website with Wii technical details for use with any operating system Donnie Smith Author of cwiid Marek Wyborski Author of.NET bindings to libcwiid


Download ppt "Wii Remotes on Linux using.NET Bindings for libcwiid Jestin Stoffel -"

Similar presentations


Ads by Google