Difference between revisions of "Configuration:WiiMotes with CWiiD"

From Wah!ki
Jump to navigation Jump to search
Line 51: Line 51:
 
Your user does not have access to use the uinput module, see [[Advanced:udev-uinput-rules|udev Rules for uinput module]]
 
Your user does not have access to use the uinput module, see [[Advanced:udev-uinput-rules|udev Rules for uinput module]]
  
[[Category:Configuration]][[Category:Controller]][[Category:Lightgun]]
+
[[Category:Configuration]][[Category:Controls]][[Category:WiiMote]][[Category:Lightgun]]

Revision as of 07:38, 5 February 2011

CWiiD

You can have a WiiMote (or WiiMotes) sync to the PC using CWiiD. This program also works as a daemon so it can run constantly in the background behind Wah!Cade syncing as though your PC was an actual Wii.

There are numerous methods for starting applications during boot up, but here we will begin the daemon before Wah!Cade startup and destroy it after exit.

Installation

Ubuntu derivatives may follow the Ubuntu Wiki for CWiiD installation instructions

  1. Install CWiiD
  2. Save the CWiiD Daemon Control Script as /home/<user>/bin/wiid
  3. Make the script executable chmod +x /home/<user>/bin/wiid
  4. Configure the script
  5. Use a script like the Wah!Cade Startup Wrapper start Wah!Cade.

Wah!Cade Startup Wrapper Example

#!/bin/bash
WAHCADEDIR="/home/user/wahcade"
PYTHON=`which python`

#
### PRE COMMANDS ###
# user commands to run before wahcade
#
# Start the wminput daemon
/home/user/bin/wiid start

#
### WAHCADE COMMAND ###
#
cd ${WAHCADEDIR}
${PYTHON} wahcade.py
wait

#
### POST COMMANDS ###
# user commands to run after wahcade
#
# Stop the wminput daemon
/home/user/bin/wiid stop

Troubleshooting

If you receive unable to open uinput when running wminput;

Starting WMINPUT
Started!
unable to open uinput

Your user does not have access to use the uinput module, see udev Rules for uinput module