mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-22 16:17:27 +00:00
Move the mouse cursor 1 pixel each direction when connecting to force the screen to wake up
This commit is contained in:
1 parent
61f89a2d4c
commit
52678cfe35
1 file changed
+11
@@ -362,6 +362,17 @@ public class NvConnection {
|
||||
}
|
||||
}
|
||||
|
||||
// Move the mouse cursor very slightly to wake the screen up for
|
||||
// gamepad-only scenarios
|
||||
sendMouseMove((short) 1, (short) 1);
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
} catch (InterruptedException e) {}
|
||||
sendMouseMove((short) -1, (short) -1);
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
} catch (InterruptedException e) {}
|
||||
|
||||
context.connListener.connectionStarted();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user