Instance Property

isAnalog

Returns a Boolean value that indicates whether the element provides analog data.

Declaration

var isAnalog: Bool { get }

Discussion

If the value is true, then the value properties defined by the element subclass can return a range (from minimum to maximum) of possible values. For example, this element might be a pressure-sensitive button or an axis of a thumb stick that allows for a range of physical movement. If the value is false, then the element’s value properties only provides discrete values, typically 0 if the element is off, and 1 if the element is on.

See Also

Inspecting Element Properties

var collection: GCControllerElement?

Returns the element that this element is part of.