UserInputType
The UserInputType
enum defines different kinds of user inputs that an application can handle. These types allow developers to categorize and process input types such as mouse interactions, keyboard usage, touch gestures, and game controller actions.
Items
MouseButton1
0
The primary (left) mouse button.
MouseButton2
1
The secondary (right) mouse button.
MouseButton3
2
The middle mouse button or mouse wheel button.
MouseWheel
3
Indicates scrolling up or down using the mouse wheel.
MouseMovement
4
Refers to the movement of the mouse cursor.
Touch
7
Input from a touch screen, such as tapping, swiping, or multi-touch gestures.
Keyboard
8
Describes input from the keyboard, such as typing or pressing a key.
Focus
9
Represents focus changes, such as when the application window gains or loses focus.
Accelerometer
10
Input from the accelerometer, used for detecting acceleration or device movement.
Gyro
11
Input from the gyroscope, used to measure device rotation or orientation.
Gamepad1
12
Input from the first gamepad or controller.
Gamepad2
13
Input from the second gamepad or controller.
Gamepad3
14
Input from the third gamepad or controller.
Gamepad4
15
Input from the fourth gamepad or controller.
Gamepad5
16
Input from the fifth gamepad or controller.
Gamepad6
17
Input from the sixth gamepad or controller.
Gamepad7
18
Input from the seventh gamepad or controller.
Gamepad8
19
Input from the eighth gamepad or controller.
TextInput
20
Represents text input, typically from typing in a text field.
InputMethod
21
Input from an alternative input method, such as an Input Method Editor (IME).
None
22
Indicates no input or serves as a placeholder value.
Last updated