C# Class HFTInput

Inheritance: MonoBehaviour
Datei anzeigen Open project: greggman/hft-unity-gamepad Class Usage Examples

Public Methods

Method Description
Awake ( ) : void
GetAccelerationEvent ( int index ) : AccelerationEvent
GetAxis ( string axisName ) : float
GetAxisRaw ( string axisName ) : float
GetButton ( string buttonName ) : bool
GetButtonDown ( string buttonName ) : bool
GetButtonUp ( string buttonName ) : bool
GetJoystickNames ( ) : string[]
GetKey ( string name ) : bool
GetKeyDown ( string name ) : bool
GetKeyUp ( string name ) : bool
GetMouseButton ( int button ) : bool
GetMouseButtonDown ( int button ) : bool
GetMouseButtonUp ( int button ) : bool
GetTouch ( int index ) : Touch
HFTInput ( ) : System
IsJoystickPreconfigured ( string joystickName ) : bool
ResetInputAxes ( ) : void
SpecifyAxisNameToAxisIndex ( string axisName, int axisIndex ) : void
SpecifyButtonNameToButtonIndex ( string buttonName, int buttonIndex ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

GetAccelerationEvent() public method

public GetAccelerationEvent ( int index ) : AccelerationEvent
index int
return UnityEngine.AccelerationEvent

GetAxis() public method

public GetAxis ( string axisName ) : float
axisName string
return float

GetAxisRaw() public method

public GetAxisRaw ( string axisName ) : float
axisName string
return float

GetButton() public method

public GetButton ( string buttonName ) : bool
buttonName string
return bool

GetButtonDown() public method

public GetButtonDown ( string buttonName ) : bool
buttonName string
return bool

GetButtonUp() public method

public GetButtonUp ( string buttonName ) : bool
buttonName string
return bool

GetJoystickNames() public method

public GetJoystickNames ( ) : string[]
return string[]

GetKey() public method

public GetKey ( string name ) : bool
name string
return bool

GetKeyDown() public method

public GetKeyDown ( string name ) : bool
name string
return bool

GetKeyUp() public method

public GetKeyUp ( string name ) : bool
name string
return bool

GetMouseButton() public method

public GetMouseButton ( int button ) : bool
button int
return bool

GetMouseButtonDown() public method

public GetMouseButtonDown ( int button ) : bool
button int
return bool

GetMouseButtonUp() public method

public GetMouseButtonUp ( int button ) : bool
button int
return bool

GetTouch() public method

public GetTouch ( int index ) : Touch
index int
return Touch

HFTInput() public method

public HFTInput ( ) : System
return System

IsJoystickPreconfigured() public method

public IsJoystickPreconfigured ( string joystickName ) : bool
joystickName string
return bool

ResetInputAxes() public method

public ResetInputAxes ( ) : void
return void

SpecifyAxisNameToAxisIndex() public method

public SpecifyAxisNameToAxisIndex ( string axisName, int axisIndex ) : void
axisName string
axisIndex int
return void

SpecifyButtonNameToButtonIndex() public method

public SpecifyButtonNameToButtonIndex ( string buttonName, int buttonIndex ) : void
buttonName string
buttonIndex int
return void

Update() public method

public Update ( ) : void
return void