From a9574e3361e168671d627071e26280f69d0d081b Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Tue, 9 Apr 2013 20:13:12 -0700 Subject: Add touchnavigation to input debugging command. Bug: 8583760 Change-Id: I9b150133e3d9ca9fe970550f5c0d7c18e6c7b558 --- cmds/input/src/com/android/commands/input/Input.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cmds') diff --git a/cmds/input/src/com/android/commands/input/Input.java b/cmds/input/src/com/android/commands/input/Input.java index cdbc405..e43501c 100644 --- a/cmds/input/src/com/android/commands/input/Input.java +++ b/cmds/input/src/com/android/commands/input/Input.java @@ -75,11 +75,14 @@ public class Input { Float.parseFloat(args[3]), Float.parseFloat(args[4]), -1); return; } - } else if (command.equals("touchscreen") || command.equals("touchpad")) { + } else if (command.equals("touchscreen") || command.equals("touchpad") + || command.equals("touchnavigation")) { // determine input source int inputSource = InputDevice.SOURCE_TOUCHSCREEN; if (command.equals("touchpad")) { inputSource = InputDevice.SOURCE_TOUCHPAD; + } else if (command.equals("touchnavigation")) { + inputSource = InputDevice.SOURCE_TOUCH_NAVIGATION; } // determine subcommand if (args.length > 1) { @@ -247,8 +250,9 @@ public class Input { System.err.println("usage: input ..."); System.err.println(" input text "); System.err.println(" input keyevent "); - System.err.println(" input [touchscreen|touchpad] tap "); - System.err.println(" input [touchscreen|touchpad] swipe [duration(ms)]"); + System.err.println(" input [touchscreen|touchpad|touchnavigation] tap "); + System.err.println(" input [touchscreen|touchpad|touchnavigation] swipe " + + " [duration(ms)]"); System.err.println(" input trackball press"); System.err.println(" input trackball roll "); } -- cgit v1.1