Code Monkey home page Code Monkey logo

wiiwill's Introduction

WiiWill

A simple Wii remote gamepad mapper for Linux.

Main UI

Installation and usage

  1. Download the tarball from the Releases section
  2. Untar with tar -xvf WiiWill.tar.xz
  3. Install make and run sudo make install
  4. Launch program
  5. Connect Wii remote from system's bluetooth settings

Steps 4 and 5 must be done in order for WiiWill to recognize the remote. Multiple instances of the app can be launched (generally done by middle-clicking the app icon in the taskbar/dash) to handle multiple Wiimotes.

Disconnect Wiimote through system bluetooth settings. Uninstall with sudo make uninstall.

Motivations

Other similar programs seem to be either unmaintained or difficult to use. My hope with this is to be able to distribute a single package or binary that works out-of-the-box, with no separate driver or library installation necessary.

How it works

Disclaimer

I'm learning about how Linux handles input devices on the fly. There may well be better ways to achieve what I'm doing here; I'm just going by what worked for me. That said, suggestions and contributions are welcome.

  1. Monitors udev for uevents in which files under /dev/input (specified by DEVNAME) are created
  2. Finds DEVPATH for uevent where NAME is specified as "Nintendo Wii Remote"
  3. Combs through contents of /sys/$DEVPATH for a folder called eventX
  4. Reads events from /dev/input/eventX
  5. Generates mapped event through uinput

Acknowledgements

wiiwill's People

Contributors

pippadi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.