C# Class Nez.VirtualJoystick

A virtual input that is represented as a Vector2, with both X and Y as values between -1 and 1
Inheritance: VirtualInput
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Свойство Type Description
nodes List
normalized bool

Méthodes publiques

Méthode Description
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

Method Details

VirtualJoystick() public méthode

public VirtualJoystick ( bool normalized ) : System.Collections.Generic
normalized bool
Résultat System.Collections.Generic

addGamePadDPad() public méthode

adds GamePad DPad input to this VirtualJoystick
public addGamePadDPad ( int gamepadIndex ) : VirtualJoystick
gamepadIndex int Gamepad index.
Résultat VirtualJoystick

addGamePadLeftStick() public méthode

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.
Résultat VirtualJoystick

addGamePadRightStick() public méthode

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.
Résultat VirtualJoystick

addKeyboardKeys() public méthode

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.
Résultat VirtualJoystick

update() public méthode

public update ( ) : void
Résultat void

Property Details

nodes public_oe property

public List nodes
Résultat List

normalized public_oe property

public bool normalized
Résultat bool