Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70114adf authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add isKeyCodeSupported hidden API to VirtualDpad" into main

parents bdec8a94 03537f52
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -79,4 +79,12 @@ public class VirtualDpad extends VirtualInputDevice {
            throw e.rethrowFromSystemServer();
        }
    }

    /**
     * Returns whether the given key code is supported by this Dpad device.
     * @hide
     */
    public boolean isKeyCodeSupported(int keyCode) {
        return SUPPORTED_KEY_CODES.contains(keyCode);
    }
}