Move the mouse cursor 1 pixel each direction when connecting to force the screen to wake up

This commit is contained in:
Cameron Gutman 2016-11-06 01:04:50 -07:00
parent 61f89a2d4c
commit 52678cfe35

View File

@ -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(); context.connListener.connectionStarted();
} }