diff --git a/core/java/android/hardware/input/VirtualDpad.java b/core/java/android/hardware/input/VirtualDpad.java index 4d61553ccb52b..8133472961a0e 100644 --- a/core/java/android/hardware/input/VirtualDpad.java +++ b/core/java/android/hardware/input/VirtualDpad.java @@ -32,8 +32,8 @@ import java.util.Set; /** * A virtual dpad representing a key input mechanism on a remote device. * - * This registers an InputDevice that is interpreted like a physically-connected device and - * dispatches received events to it. + *

This registers an InputDevice that is interpreted like a physically-connected device and + * dispatches received events to it.

* * @hide */ @@ -44,6 +44,7 @@ public class VirtualDpad extends VirtualInputDevice { Collections.unmodifiableSet( new HashSet<>( Arrays.asList( + KeyEvent.KEYCODE_BACK, KeyEvent.KEYCODE_DPAD_UP, KeyEvent.KEYCODE_DPAD_DOWN, KeyEvent.KEYCODE_DPAD_LEFT, @@ -58,8 +59,15 @@ public class VirtualDpad extends VirtualInputDevice { /** * Sends a key event to the system. * - * Supported key codes are KEYCODE_DPAD_UP, KEYCODE_DPAD_DOWN, KEYCODE_DPAD_LEFT, - * KEYCODE_DPAD_RIGHT and KEYCODE_DPAD_CENTER, + *

Supported key codes are: + *

* * @param event the event to send */