C4 Engine
C4 Engine API Documentation

InputDevice::GetInputDeviceType

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

InputDeviceType GetInputDeviceType(voidconst;

Description
The GetInputDeviceType function returns the type of an input device, which can be one of the following values.
kInputDeviceMouse Mouse device.
kInputDeviceKeyboard Keyboard device.
kInputDeviceJoystick Joystick or other game device (desktop only).
kInputDevicePlayStation PlayStation game controller device (PS5 and PS4 only).
kInputDeviceXbox Xbox controller (Xbox and Windows only).
See Also

InputDevice::GetInputDeviceHidUsage

InputDevice::GetInputDeviceName