C# Class Myre.UI.InputDevices.GamepadDevice

Inheritance: IInputDevice
ファイルを表示 Open project: martindevans/Myre

Public Methods

Method Description
ApplyDeadZone ( Vector2 direction, GamePadDeadZone deadZone, float power ) : Vector2
BlockInputs ( IEnumerable inputs ) : void
Evaluate ( Microsoft.Xna.Framework.GameTime gameTime, Control focused, UserInterface ui ) : void
GamepadDevice ( Microsoft.Xna.Framework.PlayerIndex player ) : System
IsBlocked ( IEnumerable inputs ) : bool
IsButtonDown ( Buttons button ) : bool
IsButtonNewlyDown ( Buttons button ) : bool
IsButtonNewlyUp ( Buttons button ) : bool
IsButtonUp ( Buttons button ) : bool
Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void
WasButtonDown ( Buttons button ) : bool
WasButtonUp ( Buttons button ) : bool

Private Methods

Method Description
Rescale ( float value, float min, float max ) : float
RescaleAxis ( float value, float power ) : float
RescaleMagnitude ( Vector2 direction, float power ) : Vector2

Method Details

ApplyDeadZone() public method

public ApplyDeadZone ( Vector2 direction, GamePadDeadZone deadZone, float power ) : Vector2
direction Vector2
deadZone GamePadDeadZone
power float
return Vector2

BlockInputs() public method

public BlockInputs ( IEnumerable inputs ) : void
inputs IEnumerable
return void

Evaluate() public method

public Evaluate ( Microsoft.Xna.Framework.GameTime gameTime, Control focused, UserInterface ui ) : void
gameTime Microsoft.Xna.Framework.GameTime
focused Control
ui UserInterface
return void

GamepadDevice() public method

public GamepadDevice ( Microsoft.Xna.Framework.PlayerIndex player ) : System
player Microsoft.Xna.Framework.PlayerIndex
return System

IsBlocked() public method

public IsBlocked ( IEnumerable inputs ) : bool
inputs IEnumerable
return bool

IsButtonDown() public method

public IsButtonDown ( Buttons button ) : bool
button Buttons
return bool

IsButtonNewlyDown() public method

public IsButtonNewlyDown ( Buttons button ) : bool
button Buttons
return bool

IsButtonNewlyUp() public method

public IsButtonNewlyUp ( Buttons button ) : bool
button Buttons
return bool

IsButtonUp() public method

public IsButtonUp ( Buttons button ) : bool
button Buttons
return bool

Update() public method

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

WasButtonDown() public method

public WasButtonDown ( Buttons button ) : bool
button Buttons
return bool

WasButtonUp() public method

public WasButtonUp ( Buttons button ) : bool
button Buttons
return bool