I need to retrieve the gamepad analog stick x/y values, but have yet to figure out how.
According to PlayerInput.uc, it has axis variables(aBaseX, aBaseY, RawJoyUp, RawJoyRight, etc..). I have logged these values from my player controller(see following snippet), but they always show zero.
If this isn't where the values are stored, where are they stored at?
// I have tested this with all of the axis variables in PlayerInput.
simulated event PlayerTick(float in_deltaTime)
`log("Left Stick: "@PlayerInput.RawJoyUp);
If this is where the values are stored, am I suppose to retrieve them another way?
EDIT: Problem solved after bouncing around the engine and running some tests. I had unknowingly disabled some of the input bindings in the input configuration file while editing it, thus causing the axis variables to never change. For future reference to those that may wish to know, you can bind analog stick axes to specific variables in your PlayerInput subclass.
.Bindings=(Name="XboxTypeS_LeftX",Command="Axis AnalogLeftX Speed=1.0 DeadZone=0.2")
This binds the x axis on the left stick of an xbox controller to a variable named AnalogLeftX in your PlayerInput class, sets the sensitivity to 1, and sets the deadzone to 0.2.