| View previous topic :: View next topic |
| Author |
Message |
roccob
Joined: 25 Apr 2007 Posts: 1
Digg It |
Posted: Wed Apr 25, 2007 9:51 pm Post subject: Using ppjoy.analog8 - ppjoy.analog15 |
|
|
I noticed in the context menu that you can use ppjoy.analog8 - ppjoy.analog15. PPjoy supports a max of 8 analog items. I really could use additional analog inputs, but I doubt they're supported. So what is the use of analog8 - 15?
Also, I'm seeing something wierd. The example is a simple:
| Code: |
PPJoy.Analog0 = MapRange(Wiimote.Nunchuk.JoyX, -1,1, -1,1) //axisdata [0], [1]
PPJoy.Analog1 = - MapRange(Wiimote.Nunchuk.JoyY, -1,1, -1,1) //axisdata [2]
|
I open up the Game Controllers page in the Control panel to watch the numbers that actually come in to the axes. For some reason the x and y axes always get the numbers from Analog1. Analog0 is ignored. That is the X and Y vary based upon the formula for Analog1.
Has anyone seen this? |
|
| Back to top |
|
 |
TylerK

Joined: 18 Dec 2006 Posts: 384 Location: Springfield, IL
Digg It |
Posted: Wed Apr 25, 2007 10:07 pm Post subject: |
|
|
It's possible Carl allowed for more analog inputs in case a newer version of PPJoy was released that supported more than 8. That way we wouldn't necessarily have to wait for a new version of GlovePIE in order to use a new version of PPJoy. I'm just guessing here!
And out of curiosity... what are you doing that would benefit from more than 8 analog inputs? Something musical?
As for the problem you mentioned, some clarification is needed. Are you saying that using Analog0 doesn't do anything? And why are you mapping one range of numbers to the exact same range of numbers? If you're trying to limit the output of the nunchuk analog to a range of -1 to 1 then you need to use EnsureMapRange instead of MapRange. Otherwise your code is just a needlessly more complex version of this:
| Code: |
PPJoy.Analog0 = Wiimote.Nunchuk.JoyX //axisdata [0], [1]
PPJoy.Analog1 = - Wiimote.Nunchuk.JoyY //axisdata [2]
|
|
|
| Back to top |
|
 |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Wed Apr 25, 2007 11:54 pm Post subject: |
|
|
| TylerK wrote: | . That way we wouldn't necessarily have to wait for a new version of GlovePIE in order to use a new version of PPJoy. I'm just guessing here!
|
Do you know what happened to him? _________________ Check out my collection of my wii script's
freewebs.com/kunalkunal2 |
|
| Back to top |
|
 |
TylerK

Joined: 18 Dec 2006 Posts: 384 Location: Springfield, IL
Digg It |
Posted: Thu Apr 26, 2007 7:36 pm Post subject: |
|
|
| Not a clue. I hope he's just busy and not giving up on the development of GlovePIE. That would suck. |
|
| Back to top |
|
 |
|