Instance Property

reportsAbsoluteDpadValues

A Boolean value that indicates whether the D-pad reports absolute or relative values.

Declaration

var reportsAbsoluteDpadValues: Bool { get set }

Discussion

Game controllers that implement the micro gamepad profile usually implement the D-pad in hardware as a touchpad. The default value for this property is false, which means that the location where the user first touches the touchpad is assumed to be the neutral (0.0,0.0)) value for the D-pad. All subsequent values are calculated relative to this position until the user lifts the finger. The next time the user’s finger touches the touchpad, a new origin is chosen. If this property is set to true, then all values are calculated values are relative to the physical center of the touchpad.

See Also

Reading Directional Pad Inputs

var allowsRotation: Bool

A Boolean value that indicates whether the D-pad’s values are calculated relative to its current orientation.