Feature Request: Wiimote Sync

A nice (keyboard based) front end for Arcade / Console game emulators.

Moderator: battlecat

Feature Request: Wiimote Sync

Postby Zombie » Fri Jul 30, 2010 3:26 am

I would like to know if WahCade could integrate a "sync Wiimote function" using the wminput applications provided by cwiid. The actual work of syncing the Wiimote would be done by wminput, but the actual sync would happen by pressing a key bringing up a dialogue to Sync the Wiimote.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby codefenix » Sun Aug 01, 2010 2:10 am

Who benefits from this feature? Besides you, given your unique setup, I mean.
User avatar
codefenix
 
Posts: 219
Joined: Fri Sep 25, 2009 3:45 pm
Location: USA

Re: Feature Request: Wiimote Sync

Postby Zombie » Sun Aug 01, 2010 12:02 pm

Anyone that uses their cab to play a Light Gun game. The single cheapest way to get Light Gun support in Mame is to use a Wiimote.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby sairuk » Mon Aug 02, 2010 12:26 am

potentially a handy feature, personally I have have keyboard shortcuts setup to sync the wiimote in different modes. Something unique to wahcade if its added
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Feature Request: Wiimote Sync

Postby Zombie » Sun Jan 09, 2011 4:02 am

I've tried fiddling with Wiimote Sync and Wiican, it works, but requires keyboard intervention. I need the Wiimote to function as seemlessly with cabinet as it does on a real Wii. I can't have any right or left clicking, or keyboard input on a machine with no mouse.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby sairuk » Sun Jan 09, 2011 6:03 am

http://www.mameau.com/wiki/index.php?ti ... with_CWiiD
This method will work as though it is a wii once setup.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Feature Request: Wiimote Sync

Postby Zombie » Sun Jan 16, 2011 6:38 am

Can you modify this so it can be configured via a separate config file where MAC address variables are held?
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby sairuk » Sun Jan 16, 2011 9:52 am

It can certainly be done but imo is unnecessary. The variables are stored at the top of the script for easy access and you can edit the script & variables in any text editor.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Feature Request: Wiimote Sync

Postby Zombie » Sun Jan 16, 2011 11:43 am

zYes, but I wanted to try and get something non-Human to edit the file, like WiixCan.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby Zombie » Tue Jan 18, 2011 5:32 am

Code: Select all
#!/bin/bash -x

WII_KEYMAP="ir_wahcade"

# wiimote-mac is the name of the file with the mac address

if [ -f ~/.wahcade/wiimote-mac ]; then # if file exists
    MAC_ADDRESS=`cat ~/.wahcade/wiimote-mac`

    if [ ! -z "$MAC_ADDRESS" ]; then # if variable not empty
        echo "We already have a mac address configured: $MAC_ADDRESS"
        # run commands here
   zenity --info --title "Wiimote Pairing" --text "Put the Wiimote in Discovery Mode." --timeout 5 &
   wminput -d -c $WII_KEYMAP $MAC_ADDRESS &
   exit
    fi
fi

# We only fall here if the mac address is not configured...
# Configure the mac address, assign it to $MAC_ADDRESS and then store it inside
# the file
zenity --info --title "Wiimote Pairing" --text "Getting Wiimote Address." --timeout 5 &
MAC_ADDRESS=`hcitool scan | grep Nintendo | awk '{print $1}'`
if [ -n "$MAC_ADDRESS" ];then
   echo $MAC_ADDRESS > ~/.wahcade/wiimote-mac
fi
Last edited by Zombie on Wed Jan 19, 2011 8:46 am, edited 3 times in total.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby sairuk » Tue Jan 18, 2011 2:29 pm

added to wah!ki
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Feature Request: Wiimote Sync

Postby Zombie » Tue Jan 18, 2011 2:42 pm

This isn't complete. doesn't work right, I'm trying to edit and test it. I can meet you on IRC for modification.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby sairuk » Wed Jan 19, 2011 2:12 am

removed from wahki
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
sairuk
 
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Re: Feature Request: Wiimote Sync

Postby Zombie » Wed Jan 19, 2011 10:08 am

New problem, launching Wiimote docking using the "Launch alternative application (Letter I by default) results in:

Socket connect error (control channel)
Socket connect error (control channel)

Constantly.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Re: Feature Request: Wiimote Sync

Postby Zombie » Wed Jan 19, 2011 11:25 am

Okay this was due to my Wiimote "double pairing" I need it to check if the Wiimote is already paired and terminate if it is, but there is still a bug in WahCade. THe music halts if you launch an App. then exit.
User avatar
Zombie
 
Posts: 791
Joined: Mon Oct 06, 2008 2:52 pm

Next

Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 3 guests

cron