Skip to main content

CCInputState

CCInputState

Cocos2D

Inheritance: 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.Boolean

IsButtonPress(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.Boolean

IsButtonPressed(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.Boolean

IsKeyPress(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.Boolean

IsKeyPressed(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.Boolean

IsMouseButtonDown(CCMouseButtons)

System.Boolean IsMouseButtonDown(CCMouseButtons)(Cocos2D.CCMouseButtons button)
Parameters:
button (Cocos2D.CCMouseButtons)
Returns:
System.Boolean

IsMouseButtonPress(CCMouseButtons)

System.Boolean IsMouseButtonPress(CCMouseButtons)(Cocos2D.CCMouseButtons button)
Parameters:
button (Cocos2D.CCMouseButtons)
Returns:
System.Boolean

IsMouseButtonRelease(CCMouseButtons)

System.Boolean IsMouseButtonRelease(CCMouseButtons)(Cocos2D.CCMouseButtons button)
Parameters:
button (Cocos2D.CCMouseButtons)
Returns:
System.Boolean

IsMouseButtonUp(CCMouseButtons)

System.Boolean IsMouseButtonUp(CCMouseButtons)(Cocos2D.CCMouseButtons button)
Parameters:
button (Cocos2D.CCMouseButtons)
Returns:
System.Boolean

Update(float)

Update(float)(System.Single deltaTime)
Parameters:
deltaTime (System.Single)