| View previous topic :: View next topic |
| Author |
Message |
big93
Joined: 08 Oct 2007 Posts: 16
Digg It |
Posted: Sat Oct 13, 2007 4:39 pm Post subject: buttons only being pressed once, then dont work |
|
|
buttons not being pressed one time, they wont re press, heres the code ( and i tried it with key.up and key.down, and it only moved up and down once and then stoped working )
| Code: | if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8 = true
endif
|
_________________ do it right, do it once, or dont do it at all |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 521
Digg It |
Posted: Sat Oct 13, 2007 7:52 pm Post subject: |
|
|
I haven't really used GlovePIE, but perhaps try:
| Code: |
if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
key.numpad2 = false
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8 = true
key.numpad8 = false
endif |
If that doesn't work, try this (though it has other unintended side-effects):
| Code: | if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
else
key.numpad2 = false
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8 = true
else
key.numpad8 = false
endif |
_________________ Cha0s |
|
| Back to top |
|
 |
big93
Joined: 08 Oct 2007 Posts: 16
Digg It |
Posted: Sat Oct 13, 2007 11:35 pm Post subject: |
|
|
sry, nvrmind ths _________________ do it right, do it once, or dont do it at all
Last edited by big93 on Sun Oct 14, 2007 6:52 am; edited 1 time in total |
|
| Back to top |
|
 |
big93
Joined: 08 Oct 2007 Posts: 16
Digg It |
Posted: Sat Oct 13, 2007 11:36 pm Post subject: |
|
|
ok, i got it, idk if this is what is the simlest way ( kinda like ur way chaos )
| Code: |
if ( wiimote.nunchuk.joyy > 75 ) then
key.numpad1
elseif
key.numpad1 = false
|
_________________ do it right, do it once, or dont do it at all |
|
| Back to top |
|
 |
ryandapimp913
Joined: 11 May 2008 Posts: 2
Digg It |
Posted: Mon May 12, 2008 2:48 am Post subject: doesn't matter |
|
|
you can use this
| Code: |
if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
else
key.numpad2 = false
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8 = true
else
key.numpad8 = false
endif
|
or, you can use this
| Code: |
key.numpad2 = false
key.numpad8 = false
if ( wiimote.nunchuk.joyy > .75 ) then
key.numpad2 = true
endif
if ( wiimote.nunchuk.joyy < -.75 ) then
key.numpad8 = true
endif
|
|
|
| Back to top |
|
 |
|