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

Commit 391305e7 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Add resources to specify display rotation when in keyboard open or docked state.



Also added constant for SW_LID input event.

Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent e4465e2e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -171,6 +171,9 @@ public class RawInputEvent {
    public static final int ABS_MT_BLOB_ID = 0x38;
    public static final int ABS_MAX = 0x3f;

    // Switch events
    public static final int SW_LID = 0x00;

    public static final int SYN_REPORT = 0;
    public static final int SYN_CONFIG = 1;
    public static final int SYN_MT_REPORT = 2;
+6 −0
Original line number Diff line number Diff line
@@ -57,4 +57,10 @@
        <item>"wifi,1,1"</item>
        <item>"mobile,0,1"</item>
    </string-array>

    <!-- The number of degrees to rotate the display when the keyboard is open. -->
    <integer name="config_lidOpenRotation">90</integer>

    <!-- The number of degrees to rotate the display when the device is in a dock. -->
    <integer name="config_dockedRotation">90</integer>
</resources>