Class DeviceCapabilityClasses
Helper methods for device capability classes
Inheritance
System.Object
DeviceCapabilityClasses
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Input.Device
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public static class DeviceCapabilityClasses
Properties
Axes
All axis Device
Declaration
public static IEnumerable<DeviceCapability> Axes { get; }
Property Value
Type | Description |
---|---|
System. |
Buttons
All button Device
Declaration
public static IEnumerable<DeviceCapability> Buttons { get; }
Property Value
Type | Description |
---|---|
System. |
Hats
All directional Device
Declaration
public static IEnumerable<DeviceCapability> Hats { get; }
Property Value
Type | Description |
---|---|
System. |
Keyboard
All keyboard Device
Declaration
public static IEnumerable<DeviceCapability> Keyboard { get; }
Property Value
Type | Description |
---|---|
System. |
MouseButtons
All mouse buttonDevice
Declaration
public static IEnumerable<DeviceCapability> MouseButtons { get; }
Property Value
Type | Description |
---|---|
System. |
MouseCursor
All mouse cursor Device
Declaration
public static IEnumerable<DeviceCapability> MouseCursor { get; }
Property Value
Type | Description |
---|---|
System. |
Rumble
All rumble Device
Declaration
public static IEnumerable<DeviceCapability> Rumble { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetAxis(Int32)
Gets the set of Device
Declaration
public static IEnumerable<DeviceCapability> GetAxis(int i)
Parameters
Type | Name | Description |
---|---|---|
System. |
i | The index of the axis |
Returns
Type | Description |
---|---|
System. |
The set of Device |
GetButton(Int32)
Gets the Device
Declaration
public static DeviceCapability GetButton(int i)
Parameters
Type | Name | Description |
---|---|---|
System. |
i | The index of the button |
Returns
Type | Description |
---|---|
Device |
The button Device |
GetClass(DeviceCapability)
Gets the capability class for a Device
Declaration
public static DeviceCapabilityClass GetClass(DeviceCapability capability)
Parameters
Type | Name | Description |
---|---|---|
Device |
capability | The Device |
Returns
Type | Description |
---|---|
Device |
The class of the Device |
GetHat(Int32)
Gets the set of Device
Declaration
public static IEnumerable<DeviceCapability> GetHat(int i)
Parameters
Type | Name | Description |
---|---|---|
System. |
i | The index of the directional hat |
Returns
Type | Description |
---|---|
System. |
The set of Device |