Connecting a WiiMote
  • Hey guys I'm trying to figure out how to get a Wii remote connected and running keyboard presses. So far I've gotten to the point where I have all the necessary keys mapped. The problem is that it works fine for scrolling through the menus but once I go into a emulator it seems to stop working. I'm using evdev and running code similar to:

    from evdev import UInput, ecodes as e

    ui = UInput()

    # accepts only KEY_* events by default
    ui.write(e.EV_KEY, e.KEY_ENTER, 1) # KEY_ENTER down
    ui.write(e.EV_KEY, e.KEY_ENTER, 0) # KEY_ENTER up
    ui.syn()

    ui.close()

    Any suggestions on why this works in the menu and not from inside emulators ?

    - Thanks
    - Kick
  • I should also mention i'm running 7.10
  • Have you mapped the keys in the individual emulators? I have a USB x-arcade controller that works great for the menu, but I have had to also configure it to work with each individual emulator separately.
  • It works like clockwork except after I reboot.

    Is it possible (and how) to add a menu script to re initiate the WiiMote after restart?

    Thank You

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!