Interface IInputDeviceImp
Implementors represent a physical input device.
Namespace: Fusee.Engine.Common
Assembly: Fusee.Engine.Common.dll
Syntax
public interface IInputDeviceImp
Properties
AxesCount
Gets number of axes supported by this device.
Declaration
int AxesCount { get; }
Property Value
Type | Description |
---|---|
System. |
The axes count. |
AxisImpDesc
Gets a description of the axis. This value can be used in user setup-dialogs or to match axes of devices of different categories.
Declaration
IEnumerable<AxisImpDescription> AxisImpDesc { get; }
Property Value
Type | Description |
---|---|
System. |
The description of the axis. |
ButtonCount
Gets the number of buttons supported by this device.
Declaration
int ButtonCount { get; }
Property Value
Type | Description |
---|---|
System. |
The button count. |
ButtonImpDesc
Gets information about of the specified button. This value can be used in user setup-dialogs or to match buttons of devices of different categories.
Declaration
IEnumerable<ButtonImpDescription> ButtonImpDesc { get; }
Property Value
Type | Description |
---|---|
System. |
Information about the button. |
Category
Gets the category of this device. Device categories define a minimal common set of buttons and axes which are identical across all devices sharing the same category.
Declaration
DeviceCategory Category { get; }
Property Value
Type | Description |
---|---|
Device |
The device category. |
Desc
Gets the human readable name of this device. This parameter can be used in user dialogs to identify devices.
Declaration
string Desc { get; }
Property Value
Type | Description |
---|---|
System. |
The device description. |
Id
Gets an identifier. Implementors take care that this id is unique across all devices managed by a driver.
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
System. |
The identifier. |
Methods
GetAxis(Int32)
Gets the value currently present at the given axis if its Axis
Declaration
float GetAxis(int iAxisId)
Parameters
Type | Name | Description |
---|---|---|
System. |
iAxisId | The axis' Id. |
Returns
Type | Description |
---|---|
System. |
The value currently set on the axis. |
Remarks
See Axis
GetButton(Int32)
Gets the state of the given button if its Button
Declaration
bool GetButton(int iButtonId)
Parameters
Type | Name | Description |
---|---|---|
System. |
iButtonId | The Id of the button. |
Returns
Type | Description |
---|---|
System. |
true if the button is currently pressed. false, if the button is currently released. |
Events
AxisValueChanged
Occurs on value changes of axes exhibited by this device.
Only applies for axes where the Poll
Declaration
event EventHandler<AxisValueChangedArgs> AxisValueChanged
Event Type
Type | Description |
---|---|
System. |
ButtonValueChanged
Declaration
event EventHandler<ButtonValueChangedArgs> ButtonValueChanged
Event Type
Type | Description |
---|---|
System. |