C# Class Sharpex2D.Input.GamepadState

Datei anzeigen Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
IsPressed ( GamepadButtons button ) : bool

A value indicating whether the specified button is pressed.

Private Methods

Method Description
GamepadState ( bool dpadUp, bool dpadDown, bool dpadLeft, bool dpadRight, bool aPressed, bool bPressed, bool yPressed, bool xPressed, bool backPressed, bool startPressed, bool leftShoulder, bool rightShoulder, bool leftStick, bool rightStick, bool guide, float leftTrigger, float rightTrigger, Vector2 thumbLeft, Vector2 thumbRight ) : System.Collections.Generic

Initializes a new GamepadState class.

Method Details

IsPressed() public method

A value indicating whether the specified button is pressed.
public IsPressed ( GamepadButtons button ) : bool
button GamepadButtons The GamepadButton.
return bool