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

#import <GCControllerDirectionPad.h>

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

Protected Types

typedef void(^ GCControllerDirectionPadValueChangedHandler) (GCControllerDirectionPad *dpad, float xValue, float yValue)
 

Properties

GCControllerDirectionPadValueChangedHandler valueChangedHandler
 
GCControllerAxisInputxAxis
 
GCControllerAxisInputyAxis
 
GCControllerButtonInputup
 
GCControllerButtonInputdown
 
GCControllerButtonInputleft
 
GCControllerButtonInputright
 
- Properties inherited from GCControllerElement
GCControllerElementcollection
 
BOOL analog
 

Detailed Description

A direction pad is a common grouping of 2 axis inputs where the input can also be interpreted as 2 sets of mutually exclusive button pairs. Only one button in each pair, {up, down} and {left, right}, can be pressed at any one time.

Member Typedef Documentation

◆ GCControllerDirectionPadValueChangedHandler

- (typedef void(^ GCControllerDirectionPadValueChangedHandler) (GCControllerDirectionPad *dpad, float xValue, float yValue))
protected

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

Parameters
dpadthe direction pad collection whose axis have been modified.
xValuethe value the x axis was set to at the time the valueChangedHandler fired.
yValuethe value the y axis was set to at the time the valueChangedHandler fired.

Property Documentation

◆ down

- (GCControllerButtonInput*) down
readatomicassign

◆ left

- (GCControllerButtonInput*) left
readatomicassign

◆ right

- (GCControllerButtonInput*) right
readatomicassign

◆ up

- (GCControllerButtonInput*) up
readatomicassign

◆ valueChangedHandler

- (GCControllerDirectionPadValueChangedHandler) valueChangedHandler
readwriteatomiccopy

◆ xAxis

- (GCControllerAxisInput*) xAxis
readatomicassign

◆ yAxis

- (GCControllerAxisInput*) yAxis
readatomicassign

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