mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Relative mouse fix on Chromebooks with touchscreens
This commit is contained in:
committed by
Cameron Gutman
parent
151c09f098
commit
7104e0d725
+4
-1
@@ -44,7 +44,10 @@ public class AndroidNativePointerCaptureProvider extends AndroidPointerIconCaptu
|
|||||||
// with SOURCE_TOUCHSCREEN, SOURCE_KEYBOARD, and SOURCE_MOUSE.
|
// with SOURCE_TOUCHSCREEN, SOURCE_KEYBOARD, and SOURCE_MOUSE.
|
||||||
// Upon enabling pointer capture, that device will switch to
|
// Upon enabling pointer capture, that device will switch to
|
||||||
// SOURCE_KEYBOARD and SOURCE_TOUCHPAD.
|
// SOURCE_KEYBOARD and SOURCE_TOUCHPAD.
|
||||||
if (device.supportsSource(InputDevice.SOURCE_TOUCHSCREEN)) {
|
// Only skip on non ChromeOS devices cause the ChromeOS pointer else
|
||||||
|
// gets disabled removing relative mouse capabilities
|
||||||
|
// on Chromebooks with touchscreens
|
||||||
|
if (device.supportsSource(InputDevice.SOURCE_TOUCHSCREEN) && !targetView.getContext().getPackageManager().hasSystemFeature("org.chromium.arc.device_management")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user