mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Move the mouse cursor 1 pixel each direction when connecting to force the screen to wake up
This commit is contained in:
parent
61f89a2d4c
commit
52678cfe35
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user