Show / Hide Table of Contents

Interface IInputDeviceImpOld

Abstracts the platform/device dependent implementation of an input device.

Namespace: Fusee.Engine.Common
Assembly: Fusee.Engine.Common.dll
Syntax
public interface IInputDeviceImpOld

Methods

GetButtonCount()

Implement this to get the amount of buttons.

Declaration
int GetButtonCount()
Returns
Type Description
System.Int32

The amount of buttons.

GetCategory()

Implement this to get the device category name.

Declaration
string GetCategory()
Returns
Type Description
System.String

The name of the device category.

GetName()

Implement this to get the Device Name.

Declaration
string GetName()
Returns
Type Description
System.String

The Device Name.

GetPressedButton()

Implement this to get the pressed button.

Declaration
int GetPressedButton()
Returns
Type Description
System.Int32

The Index of the pressed button.

GetXAxis()

Implement this to get the X-Axis.

Declaration
float GetXAxis()
Returns
Type Description
System.Single

The X-Axis value.

GetYAxis()

Implement this to get the Y-Axis.

Declaration
float GetYAxis()
Returns
Type Description
System.Single

The Y-Axis value.

GetZAxis()

Implement this to get the Z-Axis.

Declaration
float GetZAxis()
Returns
Type Description
System.Single

The Z-Axis value.

IsButtonDown(Int32)

Implement this to check if button is down.

Declaration
bool IsButtonDown(int button)
Parameters
Type Name Description
System.Int32 button
Returns
Type Description
System.Boolean

True, if button is down

IsButtonPressed(Int32)

Implement this to check if button has been pressed.

Declaration
bool IsButtonPressed(int button)
Parameters
Type Name Description
System.Int32 button
Returns
Type Description
System.Boolean

True, if button has been pressed.

Generated by DocFX
GitHub Repo
Back to top