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

Commit ba025563 authored by Arthur Hung's avatar Arthur Hung
Browse files

Enable mouse input on simulated desktop display

Change touch mode to TOUCH_VIRTUAL so it can be shown in InputFlinger
for support mouse input associated.

Bug: 124473310
Test: Enable desktop mode in settings,
      create a simulated display, connect mouse device.

Change-Id: Id7a00c1fa39f5ab43ff586e9cf85166a50161ce7
parent 4a42914a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -308,7 +308,7 @@ final class OverlayDisplayAdapter extends DisplayAdapter {
                    mInfo.flags |= DisplayDeviceInfo.FLAG_SECURE;
                    mInfo.flags |= DisplayDeviceInfo.FLAG_SECURE;
                }
                }
                mInfo.type = Display.TYPE_OVERLAY;
                mInfo.type = Display.TYPE_OVERLAY;
                mInfo.touch = DisplayDeviceInfo.TOUCH_NONE;
                mInfo.touch = DisplayDeviceInfo.TOUCH_VIRTUAL;
                mInfo.state = mState;
                mInfo.state = mState;
            }
            }
            return mInfo;
            return mInfo;