Example usage for android.view InputDevice SOURCE_JOYSTICK

List of usage examples for android.view InputDevice SOURCE_JOYSTICK

Introduction

In this page you can find the example usage for android.view InputDevice SOURCE_JOYSTICK.

Prototype

int SOURCE_JOYSTICK

To view the source code for android.view InputDevice SOURCE_JOYSTICK.

Click Source Link

Document

The input source is a joystick.

Usage

From source file:com.google.fpl.voltair.VoltAirActivity.java

private static boolean isGamepadEvent(KeyEvent event) {
    return isFromSource(event, InputDevice.SOURCE_JOYSTICK) || isFromSource(event, InputDevice.SOURCE_GAMEPAD);
}