Enum InputDeviceType
Classifies a physical input device by its primary interaction modality.
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public enum InputDeviceType
Remarks
This enum is used throughout the input module to tag connected devices, associate them with ControlScheme instances, and route queries in per-type bridge configurations (see PerInputType).
Keyboard and Mouse are both associated with the KeyboardMouse scheme by default. Gamepad and Joystick are associated with Gamepad. Touchscreen is associated with Touch.
The GetDeviceType(InputDevice) method maps Unity Input System
InputDevice instances to these values. Device events such as
InputDeviceConnectedEvent and InputDeviceChangedEvent
carry the resolved type alongside the Unity device reference.
Fields
| Name | Description |
|---|---|
| Gamepad | A gamepad or console controller with analog sticks, triggers, and face/shoulder buttons (Xbox, PlayStation, Nintendo Switch Pro, etc.). |
| Joystick | A joystick, flight stick, HOTAS (Hands-On Throttle and Stick) device, or similar specialized analog controller that does not report as a standard gamepad. |
| Keyboard | A physical or virtual keyboard device. |
| Mouse | A physical or virtual mouse or trackpad pointing device. |
| Pen | A pressure-sensitive stylus or pen input device. |
| Touchscreen | A capacitive touch-screen surface on mobile devices or touch-enabled monitors. |
| Unknown | A device whose type could not be determined from the Unity Input System device information, or no device is associated with a query. |