CCInputState
CCInputState
Cocos2DInheritance: System.Object
Fields
CurrentGamePadStates(Microsoft.Xna.Framework.Input.GamePadState[])
CurrentKeyboardStates(Microsoft.Xna.Framework.Input.KeyboardState[])
CurrentMouseState(Microsoft.Xna.Framework.Input.MouseState)
GamePadWasConnected(System.Boolean[])
Gestures(System.Collections.Generic.ListMicrosoft.Xna.Framework.Input.Touch.GestureSample)
Instance(Cocos2D.CCInputState)
LastGamePadStates(Microsoft.Xna.Framework.Input.GamePadState[])
LastKeyboardStates(Microsoft.Xna.Framework.Input.KeyboardState[])
LastMouseState(Microsoft.Xna.Framework.Input.MouseState)
MaxInputs(System.Int32)
TouchState(Microsoft.Xna.Framework.Input.Touch.TouchCollection)
Properties
ConsumeGamePadState(System.Boolean)
Mouse(Microsoft.Xna.Framework.Input.MouseState)
MousePosition(Microsoft.Xna.Framework.Point)
MouseScrollWheelPosition(System.Single)
MouseScrollWheelVelocity(System.Single)
MouseVelocity(Microsoft.Xna.Framework.Vector2)
Methods
IsBackPress(PlayerIndex?)
System.Boolean IsBackPress(PlayerIndex?)(System.NullableMicrosoft.Xna.Framework.PlayerIndex controllingPlayer)Parameters:
controllingPlayer (System.NullableMicrosoft.Xna.Framework.PlayerIndex)Returns:
System.BooleanIsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)
System.Boolean IsButtonPress(Buttons, PlayerIndex?, out PlayerIndex)(Microsoft.Xna.Framework.Input.Buttons button, System.NullableMicrosoft.Xna.Framework.PlayerIndex controllingPlayer, Microsoft.Xna.Framework.PlayerIndex playerIndex)Parameters:
button (Microsoft.Xna.Framework.Input.Buttons)controllingPlayer (System.NullableMicrosoft.Xna.Framework.PlayerIndex)playerIndex (Microsoft.Xna.Framework.PlayerIndex)Returns:
System.BooleanIsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)
System.Boolean IsButtonPressed(Buttons, PlayerIndex?, out PlayerIndex)(Microsoft.Xna.Framework.Input.Buttons button, System.NullableMicrosoft.Xna.Framework.PlayerIndex controllingPlayer, Microsoft.Xna.Framework.PlayerIndex playerIndex)Parameters:
button (Microsoft.Xna.Framework.Input.Buttons)controllingPlayer (System.NullableMicrosoft.Xna.Framework.PlayerIndex)playerIndex (Microsoft.Xna.Framework.PlayerIndex)Returns:
System.BooleanIsKeyPress(Keys, PlayerIndex?, out PlayerIndex)
System.Boolean IsKeyPress(Keys, PlayerIndex?, out PlayerIndex)(Microsoft.Xna.Framework.Input.Keys key, System.NullableMicrosoft.Xna.Framework.PlayerIndex controllingPlayer, Microsoft.Xna.Framework.PlayerIndex playerIndex)Parameters:
key (Microsoft.Xna.Framework.Input.Keys)controllingPlayer (System.NullableMicrosoft.Xna.Framework.PlayerIndex)playerIndex (Microsoft.Xna.Framework.PlayerIndex)Returns:
System.BooleanIsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)
System.Boolean IsKeyPressed(Keys, PlayerIndex?, out PlayerIndex)(Microsoft.Xna.Framework.Input.Keys key, System.NullableMicrosoft.Xna.Framework.PlayerIndex controllingPlayer, Microsoft.Xna.Framework.PlayerIndex playerIndex)Parameters:
key (Microsoft.Xna.Framework.Input.Keys)controllingPlayer (System.NullableMicrosoft.Xna.Framework.PlayerIndex)playerIndex (Microsoft.Xna.Framework.PlayerIndex)Returns:
System.BooleanIsMouseButtonDown(CCMouseButtons)
System.Boolean IsMouseButtonDown(CCMouseButtons)(Cocos2D.CCMouseButtons button)Parameters:
button (Cocos2D.CCMouseButtons)Returns:
System.BooleanIsMouseButtonPress(CCMouseButtons)
System.Boolean IsMouseButtonPress(CCMouseButtons)(Cocos2D.CCMouseButtons button)Parameters:
button (Cocos2D.CCMouseButtons)Returns:
System.BooleanIsMouseButtonRelease(CCMouseButtons)
System.Boolean IsMouseButtonRelease(CCMouseButtons)(Cocos2D.CCMouseButtons button)Parameters:
button (Cocos2D.CCMouseButtons)Returns:
System.BooleanIsMouseButtonUp(CCMouseButtons)
System.Boolean IsMouseButtonUp(CCMouseButtons)(Cocos2D.CCMouseButtons button)Parameters:
button (Cocos2D.CCMouseButtons)Returns:
System.BooleanUpdate(float)
Update(float)(System.Single deltaTime)Parameters:
deltaTime (System.Single)