C4 Engine
C4 Engine API Documentation

InputDevice::GetInputDeviceHidUsage

Defined in:  C4Input.h
Returns the HID usage of an input device.
Prototype

uint32 GetInputDeviceHidUsage(voidconst;

Description
The GetInputDeviceHidUsage function returns the 32-bit HID usage value for an input device. The high 16 bits contain the usage page, and the low 16 bits contain the specific usage value within that page. The Input Manager recognizes input devices having the following usage pages defined by the HID Specification.
0x0001 Generic Desktop Controls
0x0002 Simulation Controls
0x0004 Sport Controls
0x0005 Game Controls
Mice, keyboards, joysticks, and most other game input devices belong to the Generic Desktop Controls page. However, keep in mind that many of the controls belonging to those devices belong to other pages. See the specific input device subclasses for more information about HID usages for the controls belonging to each particular type of device.
See Also

InputDevice::GetInputDeviceType

InputDevice::GetInputDeviceName

InputControl::GetInputControlHidUsage