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 

glovepie doesn't react on gamepad buttons

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
HoPi`



Joined: 21 Apr 2007
Posts: 11

Digg It
PostPosted: Fri May 30, 2008 4:36 am    Post subject: glovepie doesn't react on gamepad buttons

hey there,

I wanted glovepie to play some wave files when I press the buttons. I used the GUI to find out how the gamepad is accessed in glovepie, and it's mapped to PPJoy2 (at least PPJoy2 and the button I pressed is highlighted when I choose "detect output to emulate"). So my script looks like this:
Code:

PPJoy2.Digital0 = playsound("bleh.wav")
Debug = PPJoy2.Digital0

Now, the debug line always says "false" and the file is never played. What's my mistake here?
Back to top
View user's profile Send private message
HoPi`



Joined: 21 Apr 2007
Posts: 11

Digg It
PostPosted: Fri May 30, 2008 4:44 am    Post subject:

whoops... nevermind.

Code:

If Joystick2.Button1 = true then
   playsound("drummer\ABL_Pro_drums\ablprosnare2.wav")
end if

Now I need some fixing to detect a button being held, while the wave sound should only be played once.

//edit
Damn, Glovepie seems NOT like the program I wanted. I want to build a small drumkit and insert a gamepad PCB - the computer should play drum files when I hit the drumpads. Unfortunately, Glovepie only plays one file at a time, there's no overlapping Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts 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