SKUGameControllerState
IntroductionController events only fire when changed, so this is needed to store the state on frames when the state doesn't change. MethodscontrollerStateWithCenterPosition:+(SKUGameControllerState*)controllerStateWithCenterPosition:(CGPoint)location; DiscussionReturns a new object with a center position provided. Properties
buttonsPressed@property (nonatomic, assign) kSKUGamePadInputs buttonsPressed; DiscussionFlags determining which buttons are pressed or not. buttonsPressedPrevious@property (nonatomic, assign) kSKUGamePadInputs buttonsPressedPrevious; DiscussionFlags determining which buttons are pressed or not, prior to the most recent change. location@property (nonatomic, assign) CGPoint location; DiscussionLocation store for determining relative input. normalVectorDPad@property (nonatomic, assign) CGVector normalVectorDPad; DiscussionVector that the control was pointed in. Always normal. normalVectorLThumbstick@property (nonatomic, assign) CGVector normalVectorLThumbstick; DiscussionVector that the control was pointed in. Always normal. normalVectorRThumbstick@property (nonatomic, assign) CGVector normalVectorRThumbstick; DiscussionVector that the control was pointed in. Always normal. speed@property (nonatomic, assign) CGFloat speed; DiscussionCGFloat storing a speed value. speedModDPad@property (nonatomic, assign) CGFloat speedModDPad; DiscussionCGFloat storing a speed mod value. speedModLThumbstick@property (nonatomic, assign) CGFloat speedModLThumbstick; DiscussionCGFloat storing a speed mod value. speedModRThumbstick@property (nonatomic, assign) CGFloat speedModRThumbstick; DiscussionCGFloat storing a speed mod value. vectorDPad@property (nonatomic, assign) CGVector vectorDPad; DiscussionVector that the control was pointed in. May or may not be normal. vectorLThumbstick@property (nonatomic, assign) CGVector vectorLThumbstick; DiscussionVector that the control was pointed in. May or may not be normal. vectorRThumbstick@property (nonatomic, assign) CGVector vectorRThumbstick; DiscussionVector that the control was pointed in. May or may not be normal. |