Example usage for android.view InputDevice SOURCE_TOUCH_NAVIGATION

List of usage examples for android.view InputDevice SOURCE_TOUCH_NAVIGATION

Introduction

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

Prototype

int SOURCE_TOUCH_NAVIGATION

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

Click Source Link

Document

The input source is a touch device whose motions should be interpreted as navigation events.

Usage

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

private static boolean isTouchNavigationEvent(InputEvent event) {
    return isFromSource(event, InputDevice.SOURCE_TOUCH_NAVIGATION)
            && isFromSource(event, InputDevice.SOURCE_KEYBOARD);
}