// Gamepad input constgamepad = inputManager.gamepads[0]; if (gamepad?.bottomFace) { // Bottom face button pressed (A on Xbox, B on Nintendo, X on PlayStation) }
// Gamepad stick movement constleftStickPos = gamepad?.leftStickAxes; constrightStickPos = gamepad?.rightStickAxes;
Manages input sources including keyboard, mouse, gamepad and touch screen interactions.
Provides methods to check key states, mouse position/buttons, gamepad inputs and touch events.
Example