C# Class Azmyth.Mono.InputManager

显示文件 Open project: GalacticSoft/Azmyth

Public Methods

Method Description
AnyKeyPressed ( ) : bool
AnyPadPressed ( ) : bool
Initialize ( ) : void
KeyHeld ( Keys key ) : bool
KeyPressed ( Keys key ) : bool
KeyReleased ( Keys key ) : bool
MouseWheel ( ) : int
PadHeld ( PlayerIndex player, Buttons button ) : bool
PadPressed ( PlayerIndex player, Buttons button ) : bool
Reset ( ) : void
SetVibration ( PlayerIndex player, float leftMotor, float rightMotor ) : void
ThumbDownHeld ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbDownPressed ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbLeftHeld ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbLeftPressed ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbPosition ( PlayerIndex player, ThumbSticks stick ) : Vector2
ThumbRightHeld ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbRightPressed ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbUpHeld ( PlayerIndex player, ThumbSticks stick ) : bool
ThumbUpPressed ( PlayerIndex player, ThumbSticks stick ) : bool
Update ( GameTime gameTime ) : void

Private Methods

Method Description
InputManager ( ) : System

Method Details

AnyKeyPressed() public static method

public static AnyKeyPressed ( ) : bool
return bool

AnyPadPressed() public static method

public static AnyPadPressed ( ) : bool
return bool

Initialize() public static method

public static Initialize ( ) : void
return void

KeyHeld() public static method

public static KeyHeld ( Keys key ) : bool
key Keys
return bool

KeyPressed() public static method

public static KeyPressed ( Keys key ) : bool
key Keys
return bool

KeyReleased() public static method

public static KeyReleased ( Keys key ) : bool
key Keys
return bool

MouseWheel() public static method

public static MouseWheel ( ) : int
return int

PadHeld() public static method

public static PadHeld ( PlayerIndex player, Buttons button ) : bool
player PlayerIndex
button Buttons
return bool

PadPressed() public static method

public static PadPressed ( PlayerIndex player, Buttons button ) : bool
player PlayerIndex
button Buttons
return bool

Reset() public static method

public static Reset ( ) : void
return void

SetVibration() public static method

public static SetVibration ( PlayerIndex player, float leftMotor, float rightMotor ) : void
player PlayerIndex
leftMotor float
rightMotor float
return void

ThumbDownHeld() public static method

public static ThumbDownHeld ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbDownPressed() public static method

public static ThumbDownPressed ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbLeftHeld() public static method

public static ThumbLeftHeld ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbLeftPressed() public static method

public static ThumbLeftPressed ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbPosition() public static method

public static ThumbPosition ( PlayerIndex player, ThumbSticks stick ) : Vector2
player PlayerIndex
stick ThumbSticks
return Vector2

ThumbRightHeld() public static method

public static ThumbRightHeld ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbRightPressed() public static method

public static ThumbRightPressed ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbUpHeld() public static method

public static ThumbUpHeld ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

ThumbUpPressed() public static method

public static ThumbUpPressed ( PlayerIndex player, ThumbSticks stick ) : bool
player PlayerIndex
stick ThumbSticks
return bool

Update() public static method

public static Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void