WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PPjoy with 2 Wiimotes+Nunchucks

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
Raz



Joined: 26 Sep 2008
Posts: 2

Digg It
PostPosted: Fri Sep 26, 2008 6:33 pm    Post subject: PPjoy with 2 Wiimotes+Nunchucks

Hi I've been using these forums a lot for help setting up my wiimote and nunchuck to work with my emulators. I've run into a bit of a snag though. I want to set up two of them. I have both of them added in PPjoy as "PPJoy Virtual Joystick 1" and "PPJoy Virtual Joystick 2" and here's my glovepie code:
Code:
PPjoy.analog0 = wiimote1.Nunchuk.JoyX
ppjoy.analog1 = wiimote1.nunchuk.joyy
PPjoy.analog9 = wiimote2.Nunchuk.JoyX
ppjoy.analog10 = wiimote2.nunchuk.joyy

Wiimote1.Led1 = 1
Wiimote2.Led2 = 1
//Controller Mapping Player 1
Key.A = Wiimote1.A
Key.B = Wiimote1.B
Key.Z = Wiimote1.Nunchuk.ZButton
Key.R = Wiimote1.Nunchuk.CButton
Key.End = Wiimote1.Down
Key.Delete = Wiimote1.Left
Key.PageDown = Wiimote1.Right
Key.Home = Wiimote1.Up
Key.S = Wiimote1.Plus
Key.L = Wiimote1.Minus
Key.F4 = Wiimote1.One
   
//Controller Mapping Player 2
Key.D = Wiimote2.A
Key.N = Wiimote2.B
Key.X = Wiimote2.Nunchuk.ZButton
Key.T = Wiimote2.Nunchuk.CButton
Key.NUMPAD2 = Wiimote2.Down
Key.NUMPAD4 = Wiimote2.Left
Key.NUMPAD6 = Wiimote2.Right
Key.NUMPAD8 = Wiimote2.Up
Key.F = Wiimote2.Plus
Key.K = Wiimote2.Minus



//END
//----------------------------------------------------------------------------//


The first wiimote and nunchuck works great but with the second one only the buttons work while the joystick doesn't. I have 2nd joystick's mappings set to Analog9 and Analog10 in PPJoy but the Project 64 controller input won't recognize the joystick movement at all. Any help would be greatly appreciated. Thanks in advance!
Back to top
View user's profile Send private message
Fat D



Joined: 22 Nov 2006
Posts: 77

Digg It
PostPosted: Fri Oct 10, 2008 11:03 am    Post subject:

Did you map the axes of your PPJoy controller to these analog inputs?
Back to top
View user's profile Send private message
Raz



Joined: 26 Sep 2008
Posts: 2

Digg It
PostPosted: Fri Oct 10, 2008 12:26 pm    Post subject:

Yeah. the first PPJoy had analog 0 and 1. I set the second one to 9 and 10 in the script and no luck. I even tried mapping the second one to the same as the first and still no movement.
Back to top
View user's profile Send private message
WiiAreVenom



Joined: 11 Oct 2008
Posts: 2

Digg It
PostPosted: Sat Oct 11, 2008 9:56 pm    Post subject:

It's been a while since I used PPJoy (no thanks to 64 bit), but I remember specifying a number for each one.

So I would have expected it to look like this:

Code:
PPjoy1.analog0 = wiimote1.Nunchuk.JoyX
ppjoy1.analog1 = wiimote1.nunchuk.joyy
PPjoy2.analog0 = wiimote2.Nunchuk.JoyX
ppjoy2.analog1 = wiimote2.nunchuk.joyy


Hope that helps
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group