Android controller terminology and diagnosis / 2026-08-01

Android controller KeyEvent vs MotionEvent: diagnose missing emulator inputs

Determine whether a gamepad button, trigger, D-pad, or analog stick reaches Android as a key or motion axis before remapping the emulator.

9 minute diagnostic guideAndroid game-controller APIs; emulator mappings vary by app and core

Android controller KeyEvent vs MotionEvent: diagnose missing emulator inputs

Android normally reports digital buttons with KeyEvent and sticks, hats, and analog triggers with MotionEvent axes. Test the controller at the Android layer first; a trigger mapped as an axis will not be repaired by repeatedly binding a button keycode.

Do this in order

  1. 01

    Connect one controller and record Android version, wired or wireless transport, and emulator build.

  2. 02

    Use an Android input test to identify each control as a keycode or named motion axis.

  3. 03

    Confirm D-pad hats, both sticks, and analog triggers reach Android before opening the emulator mapper.

  4. 04

    In the frontend, map hardware to its virtual controller layer; in RetroArch that layer is RetroPad.

  5. 05

    Map the virtual controls to the game's inputs and test press, hold, release, full axis travel, and center.

  6. 06

    Reconnect and cold-start once to prove the mapping survives enumeration and relaunch.

Decision and diagnostic table

Physical controlTypical Android eventFailure clue
Face/bumper/start buttonKeyEventNo down/up or unexpected repeat
Analog stickMotionEvent axisNo range, drift, or wrong axis
D-padHat axes or key eventsMenu works but game mapping differs
Analog triggerTrigger axis; some variants also send key eventsBinding only a button loses analog travel

Android reports controls before the emulator maps them

The operating system event, frontend virtual pad, core input, and machine control are separate layers. Prove each transition instead of remapping all layers at once.

Controller families can differ

Android's official guidance notes labeling and trigger-event variations among Xbox-, Switch-, and PlayStation-style controllers. Test the actual device rather than assuming the printed label is the event identity.

First-party sources

Related guides