C# 클래스 Myre.UI.InputDevices.GamepadDevice

상속: IInputDevice
파일 보기 프로젝트 열기: martindevans/Myre

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Rescale ( float value, float min, float max ) : float
RescaleAxis ( float value, float power ) : float
RescaleMagnitude ( Vector2 direction, float power ) : Vector2

메소드 상세

ApplyDeadZone() 공개 메소드

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

BlockInputs() 공개 메소드

public BlockInputs ( IEnumerable inputs ) : void
inputs IEnumerable
리턴 void

Evaluate() 공개 메소드

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

GamepadDevice() 공개 메소드

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

IsBlocked() 공개 메소드

public IsBlocked ( IEnumerable inputs ) : bool
inputs IEnumerable
리턴 bool

IsButtonDown() 공개 메소드

public IsButtonDown ( Buttons button ) : bool
button Buttons
리턴 bool

IsButtonNewlyDown() 공개 메소드

public IsButtonNewlyDown ( Buttons button ) : bool
button Buttons
리턴 bool

IsButtonNewlyUp() 공개 메소드

public IsButtonNewlyUp ( Buttons button ) : bool
button Buttons
리턴 bool

IsButtonUp() 공개 메소드

public IsButtonUp ( Buttons button ) : bool
button Buttons
리턴 bool

Update() 공개 메소드

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

WasButtonDown() 공개 메소드

public WasButtonDown ( Buttons button ) : bool
button Buttons
리턴 bool

WasButtonUp() 공개 메소드

public WasButtonUp ( Buttons button ) : bool
button Buttons
리턴 bool