最終更新:2018-02-15 (木) 16:51:31 (2260d)  

Android/入力
Top / Android / 入力

http://source.android.com/tech/input/overview.html

キー入力のエミュレーション

順序

AOSP/frameworks/native/services/inputflinger/EventHub.h

  • 種類
    INPUT_DEVICE_CLASS_KEYBOARD0x00000001The input device is a keyboard or has buttons.
    INPUT_DEVICE_CLASS_ALPHAKEY?0x00000002The input device is an alpha-numeric keyboard (not just a dial pad).
    INPUT_DEVICE_CLASS_TOUCH0x00000004The input device is a touchscreen or a touchpad (either single-touch or multi-touch).
    INPUT_DEVICE_CLASS_CURSOR0x00000008The input device is a cursor device such as a trackball or mouse.
    INPUT_DEVICE_CLASS_TOUCH_MT?0x00000010The input device is a multi-touch touchscreen.
    INPUT_DEVICE_CLASS_DPAD?0x00000020The input device is a directional pad (implies keyboard, has DPAD keys).
    INPUT_DEVICE_CLASS_GAMEPAD?0x00000040The input device is a gamepad (implies keyboard, has BUTTON keys).
    INPUT_DEVICE_CLASS_SWITCH?0x00000080The input device has switches.
    INPUT_DEVICE_CLASS_JOYSTICK?0x00000100The input device is a joystick (implies gamepad, has joystick absolute axes).
    INPUT_DEVICE_CLASS_VIBRATOR?0x00000200The input device has a vibrator (supports FF_RUMBLE).
    INPUT_DEVICE_CLASS_VIRTUAL?0x40000000The input device is virtual (not a real device, not part of UI configuration).
    INPUT_DEVICE_CLASS_EXTERNAL0x80000000The input device is external (not built-in)

Android/キーボード

関連