setValueForXAxis(_:yAxis:)
Sets the input values of a snapshot of a directional pad.
Declaration
func setValueForXAxis(_ xAxis: Float, yAxis: Float)Parameters
- xAxis:
A normalized value of the x-axis ranging from
-1to1. - yAxis:
A normalized value for the y-axis ranging from
-1to1.
Discussion
This method does nothing if the associated controller isn’t a snapshot (its isSnapshot property is false). Otherwise, this method sets the value of the direction pad’s buttons as well.