C# 클래스 Nez.VirtualJoystick

A virtual input that is represented as a Vector2, with both X and Y as values between -1 and 1
상속: VirtualInput
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
nodes List
normalized bool

공개 메소드들

메소드 설명
VirtualJoystick ( bool normalized ) : System.Collections.Generic
addGamePadDPad ( int gamepadIndex ) : VirtualJoystick

adds GamePad DPad input to this VirtualJoystick

addGamePadLeftStick ( int gamepadIndex, float deadzone = Input.DEFAULT_DEADZONE ) : VirtualJoystick

adds GamePad left stick input to this VirtualJoystick

addGamePadRightStick ( int gamepadIndex, float deadzone = Input.DEFAULT_DEADZONE ) : VirtualJoystick

adds GamePad right stick input to this VirtualJoystick

addKeyboardKeys ( OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down ) : VirtualJoystick

adds keyboard keys input to this VirtualJoystick. Four keyboard keys will emulate left/right/up/down. For example WASD or the arrow keys.

update ( ) : void

메소드 상세

VirtualJoystick() 공개 메소드

public VirtualJoystick ( bool normalized ) : System.Collections.Generic
normalized bool
리턴 System.Collections.Generic

addGamePadDPad() 공개 메소드

adds GamePad DPad input to this VirtualJoystick
public addGamePadDPad ( int gamepadIndex ) : VirtualJoystick
gamepadIndex int Gamepad index.
리턴 VirtualJoystick

addGamePadLeftStick() 공개 메소드

adds GamePad left stick input to this VirtualJoystick
public addGamePadLeftStick ( int gamepadIndex, float deadzone = Input.DEFAULT_DEADZONE ) : VirtualJoystick
gamepadIndex int Gamepad index.
deadzone float Deadzone.
리턴 VirtualJoystick

addGamePadRightStick() 공개 메소드

adds GamePad right stick input to this VirtualJoystick
public addGamePadRightStick ( int gamepadIndex, float deadzone = Input.DEFAULT_DEADZONE ) : VirtualJoystick
gamepadIndex int Gamepad index.
deadzone float Deadzone.
리턴 VirtualJoystick

addKeyboardKeys() 공개 메소드

adds keyboard keys input to this VirtualJoystick. Four keyboard keys will emulate left/right/up/down. For example WASD or the arrow keys.
public addKeyboardKeys ( OverlapBehavior overlapBehavior, Keys left, Keys right, Keys up, Keys down ) : VirtualJoystick
overlapBehavior OverlapBehavior Overlap behavior.
left Keys Left.
right Keys Right.
up Keys Up.
down Keys Down.
리턴 VirtualJoystick

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

nodes 공개적으로 프로퍼티

public List nodes
리턴 List

normalized 공개적으로 프로퍼티

public bool normalized
리턴 bool