| View previous topic :: View next topic |
| Author |
Message |
HoPi`
Joined: 21 Apr 2007 Posts: 11
Digg It |
Posted: 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 |
|
 |
HoPi`
Joined: 21 Apr 2007 Posts: 11
Digg It |
Posted: 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  |
|
| Back to top |
|
 |
|