Lines Matching refs:InputDevice
117 {@link android.view.InputDevice#getSources()} to obtain a combined bit field of
121 <li>A source type of {@link android.view.InputDevice#SOURCE_GAMEPAD} indicates
126 <li>A source type of {@link android.view.InputDevice#SOURCE_DPAD} indicates that
129 <li>A source type of {@link android.view.InputDevice#SOURCE_JOYSTICK}
144 int[] deviceIds = InputDevice.getDeviceIds();
146 InputDevice dev = InputDevice.getDevice(deviceId);
150 if (((sources & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD)
151 || ((sources & InputDevice.SOURCE_JOYSTICK)
152 == InputDevice.SOURCE_JOYSTICK)) {
171 {@link android.view.InputDevice#hasKeys(int...)}.</li>
174 {@link android.view.InputDevice#getMotionRanges()}. Then, on each
175 {@link android.view.InputDevice.MotionRange} object returned, call
176 {@link android.view.InputDevice.MotionRange#getAxis()} to get its axis ID.</li>
285 if ((event.getSource() & InputDevice.SOURCE_GAMEPAD)
286 == InputDevice.SOURCE_GAMEPAD) {
434 if ((event.getSource() & InputDevice.SOURCE_DPAD)
435 != InputDevice.SOURCE_DPAD) {
519 if ((event.getSource() & InputDevice.SOURCE_JOYSTICK) ==
520 InputDevice.SOURCE_JOYSTICK &&
553 InputDevice device, int axis, int historyPos) {
554 final InputDevice.MotionRange range =
581 InputDevice mInputDevice = event.getDevice();