C# Class Accord.Controls.Joystick.Status

Class describing current joystick's status.

All joystick axes' positions are measured in [-1, 1] range, where 0 corresponds to center position - axis is not deflected (directed) to any side.

ファイルを表示 Open project: accord-net/framework

Public Methods

Method Description
IsButtonPressed ( Buttons button ) : bool

Check if certain button (or combination of buttons) is pressed.

Private Methods

Method Description
Status ( JoystickAPI status, JoystickAPI capabilities ) : System

Method Details

IsButtonPressed() public method

Check if certain button (or combination of buttons) is pressed.
public IsButtonPressed ( Buttons button ) : bool
button Buttons Button to check state of.
return bool