Class HidHelper
Static class that provides helper functions for consuming HID input.
Inherited Members
Namespace: OpenTK.Input.Hid
Assembly: OpenTK.Input.dll
Syntax
public static class HidHelper
Methods
TranslateJoystickAxis(HidPage, int)
Translates a generic HID usage value to a specific joystick axis for the specified HidPage.
Declaration
public static int TranslateJoystickAxis(HidPage page, int usage)
Parameters
| Type | Name | Description |
|---|---|---|
| HidPage | page | The HID usage page. |
| int | usage | The generic usage value. |
Returns
| Type | Description |
|---|---|
| int | An int that maps the HID usage value to a joystick axis. |