mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-05 23:46:04 +00:00
Add isCapturing() method to mouse capture providers
This commit is contained in:
@@ -221,6 +221,7 @@ public class EvdevCaptureProvider extends InputCaptureProvider {
|
||||
|
||||
@Override
|
||||
public void enableCapture() {
|
||||
super.enableCapture();
|
||||
if (!started) {
|
||||
// Start the handler thread if it's our first time
|
||||
// capturing
|
||||
@@ -247,6 +248,7 @@ public class EvdevCaptureProvider extends InputCaptureProvider {
|
||||
|
||||
@Override
|
||||
public void disableCapture() {
|
||||
super.disableCapture();
|
||||
// This may be called on the main thread
|
||||
runInNetworkSafeContextSynchronously(new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user