SKUGameControllerState

Superclass:
NSObject
Declared In:

Introduction

Controller events only fire when changed, so this is needed to store the state on frames when the state doesn't change.



Methods

+controllerStateWithCenterPosition:

controllerStateWithCenterPosition:


Discussion

Returns a new object with a center position provided.


Properties

buttonsPressed
buttonsPressedPrevious
location
normalVectorDPad
normalVectorLThumbstick
normalVectorRThumbstick
speed
speedModDPad
speedModLThumbstick
speedModRThumbstick
vectorDPad
vectorLThumbstick
vectorRThumbstick

buttonsPressed


@property (nonatomic,
    assign) kSKUGamePadInputs buttonsPressed; 
Discussion

Flags determining which buttons are pressed or not.


buttonsPressedPrevious


@property (nonatomic,
    assign) kSKUGamePadInputs buttonsPressedPrevious; 
Discussion

Flags determining which buttons are pressed or not, prior to the most recent change.


location


@property (nonatomic,
    assign) CGPoint location; 
Discussion

Location store for determining relative input.


normalVectorDPad


@property (nonatomic,
    assign) CGVector normalVectorDPad; 
Discussion

Vector that the control was pointed in. Always normal.


normalVectorLThumbstick


@property (nonatomic,
    assign) CGVector normalVectorLThumbstick; 
Discussion

Vector that the control was pointed in. Always normal.


normalVectorRThumbstick


@property (nonatomic,
    assign) CGVector normalVectorRThumbstick; 
Discussion

Vector that the control was pointed in. Always normal.


speed


@property (nonatomic,
    assign) CGFloat speed; 
Discussion

CGFloat storing a speed value.


speedModDPad


@property (nonatomic,
    assign) CGFloat speedModDPad; 
Discussion

CGFloat storing a speed mod value.


speedModLThumbstick


@property (nonatomic,
    assign) CGFloat speedModLThumbstick; 
Discussion

CGFloat storing a speed mod value.


speedModRThumbstick


@property (nonatomic,
    assign) CGFloat speedModRThumbstick; 
Discussion

CGFloat storing a speed mod value.


vectorDPad


@property (nonatomic,
    assign) CGVector vectorDPad; 
Discussion

Vector that the control was pointed in. May or may not be normal.


vectorLThumbstick


@property (nonatomic,
    assign) CGVector vectorLThumbstick; 
Discussion

Vector that the control was pointed in. May or may not be normal.


vectorRThumbstick


@property (nonatomic,
    assign) CGVector vectorRThumbstick; 
Discussion

Vector that the control was pointed in. May or may not be normal.