Back to Music front pageBack to CDM community forum indexBack to Motion front page
Create Digital Noise Forum Index  »  Software  »  GlovePIE+MIDI=Analog Joystick Help
 This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Page 1 of 1    

GlovePIE+MIDI=Analog Joystick Help

Author Message
cheft
Posted: Sat Jan 10, 2009 11:24 pm Reply with quote
Joined: 10 Jan 2009 Posts: 1
I'm trying to get GlovePIE working with some analog joysticks on a gamepad.
How can I get the value to return to 63 after I move the joystick?
i.e. How can I get the knobs to return to the middle position after I have moved it?

Code:
//LOGITECH DUEL ACTION GAMEPAD TO MIDI
//WRITTEN FOR MIDI CHAN 2 ON JOYSTICK #2
/
//BUTTONS
midi.Channel2.C1=joystick2.Button1
midi.Channel2.D1=joystick2.Button2
midi.Channel2.E1=joystick2.Button3
midi.Channel2.F1=joystick2.Button4
//TOP BUTTONS
midi.Channel2.G1=joystick2.Button5
midi.Channel2.A1=joystick2.Button6
midi.Channel2.B1=joystick2.Button7
midi.Channel2.C2=joystick2.Button8
//SELECT/START BUTTONS
midi.Channel2.D2=joystick2.Button9
midi.Channel2.E2=joystick2.Button10
//STICK BUTTONS
midi.Channel2.F2=joystick2.Button11
midi.Channel2.G2=joystick2.Button12
//POV
midi.Channel2.A2=joystick2.Pov1Up
midi.Channel2.B2=joystick2.Pov1Down
midi.Channel2.C3=joystick2.Pov1Left
midi.Channel2.D3=joystick2.Pov1Right
//ANALOG STICKS
midi.Channel2.Control1=Joystick2.x/250
midi.Channel2.Control2=Joystick2.y/250
midi.Channel2.Control3=Joystick2.z/250
midi.Channel2.Control4=Joystick2.roll/250
View user's profile Send private message
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Page 1 of 1    
All times are GMT - 4 Hours
The time now is Tue Feb 09, 2010 4:23 am
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