• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Glovepie help

Zarx1554

Smash Journeyman
Joined
Jun 22, 2014
Messages
402
Location
California
NNID
Zarx1554
I'm not completely sure this thread goes here, but it seems to best fit here. I'm trying to use Glovepie so I can use my gamecube controller, through the mayflash adapter, to play melee on dolphin. The code works perfectly except for one problem. When I use the analog stick, it only works for one frame. The code functions as a keyboard, and I want it to stay that way. Can anyone help me with this.
Here's my code. I'm not extremely experienced.
Key.Q = Pressed(Classic1.LeftStickY + 1)
Key.W = Pressed(Classic1.LeftStickY - 1)
Key.E = Pressed(Classic1.LeftStickX - 1)
Key.R = Pressed(Classic1.LeftStickX + 1)
Key.T = Pressed(Classic1.RightStickY + 1)
Key.Y = Pressed(Classic1.RightStickY - 1)
Key.U = Pressed(Classic1.RightStickX + 1)
Key.I = Pressed(Classic1.RightStickX + 1)
Key.O = Pressed(Classic1.a)
Key.P = Pressed(Classic1.b)
Key.A = Pressed(Classic1.x)
Key.S = Pressed(Classic1.y)
Key.D = Pressed(Classic1.ZR)
Key.F = Pressed(Classic1.L)
Key.G = Pressed(Classic1.R)
Key.H = Pressed(Classic1.Start)
Key.X = Pressed(Classic1.DPadY - 1)
Key.Z = Pressed(Classic1.DPadY + 1)
Key.C = Pressed(Classic1.DPadX - 1)
Key.V = Pressed(Classic1.DPadX + 1)
 

Mvushaji

Smash Rookie
Joined
Aug 1, 2014
Messages
2
Location
Montevallo, AL
Hmm... been awhile since I messed with Glove Pie scripts. I think the "Pressed ()" function you're using is only called once when the given button is inputted, and stops after that one call. In fact, i never used the "Pressed ()" function unless i specifically needed a button to only register once. I'm typing on a tablet, so I'm not going to write new code for you, but I can paste the script from one of my configuration files so maybe you can get an idea of how to fix it:

//

Key.A = (-1.2 < classic1.Joy1X < -0.5)
Key.B = (0.5 < classic1.Joy1X < 1.2)
Key.C = (-1.2 < classic1.Joy1Y < -0.5)
Key.D = (0.5 < classic1.Joy1Y < 1.2)

Key.E = classic1.a
Key.F = classic1.b
Key.G = classic1.x
Key.H = classic1.y
Key.I = classic1.Minus
Key.J = classic1.Home
Key.K = classic1.Plus
Key.L = classic1.Up
Key.M = classic1.Down
Key.N = classic1.Left
Key.O = classic1.Right
Key.P = classic1.LFull
Key.Q = classic1.RFull

Key.R = (-1.2 < classic1.Joy2X < -0.5)
Key.S = (0.5 < classic1.Joy2X < 1.2)
Key.T = (-1.2 < classic1.Joy2Y < -0.5)
Key.U = (0.5 < classic1.Joy2Y < 1.2)

//

If you have questions about it works just ask. You can lower the "0.5" and "-0.5" values closer to zero to make it more sensitive to the joystick inputs.
 
Top Bottom