Add isCapturing() method to mouse capture providers

This commit is contained in:
Cameron Gutman
2017-05-31 21:24:41 -07:00
parent e66b1ebec9
commit f07c886711
6 changed files with 28 additions and 10 deletions

View File

@@ -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