RetroArch
Protected Types | Properties | List of all members
GCControllerAxisInput Class Reference

#import <GCControllerAxisInput.h>

Inheritance diagram for GCControllerAxisInput:
[legend]
Collaboration diagram for GCControllerAxisInput:
[legend]

Protected Types

typedef void(^ GCControllerAxisValueChangedHandler) (GCControllerAxisInput *axis, float value)
 

Properties

GCControllerAxisValueChangedHandler valueChangedHandler
 
float value
 
- Properties inherited from GCControllerElement
GCControllerElementcollection
 
BOOL analog
 

Member Typedef Documentation

◆ GCControllerAxisValueChangedHandler

- (typedef void(^ GCControllerAxisValueChangedHandler) (GCControllerAxisInput *axis, float value))
protected

Set this block if you want to be notified when the value on this axis changes.

Parameters
axisthe element that has been modified.
valuethe value the axis was set to at the time the valueChangedHandler fired.

Property Documentation

◆ value

- (float) value
readatomicassign

A normalized value for the input, between -1 and 1 for axis inputs. The values are deadzoned and saturated before they are returned so there is no value ouside the range. Deadzoning does not remove values from the range, the full 0 to 1 magnitude of values are possible from the input.

As an axis is often used in a digital sense, you can rely on a value of 0 meaning the axis is inside the deadzone. Any value greater than or less than zero is not in the deadzone.

◆ valueChangedHandler

- (GCControllerAxisValueChangedHandler) valueChangedHandler
readwriteatomiccopy

The documentation for this class was generated from the following file: