Retransmit OSC gamepad packets every 100 ms to recover from dropped events in GFE

This commit is contained in:
Cameron Gutman
2018-11-30 21:17:12 -08:00
parent 4930087c4d
commit 6993051529
3 changed files with 23 additions and 15 deletions

View File

@@ -406,6 +406,7 @@ public class Game extends Activity implements SurfaceHolder.Callback,
(FrameLayout)streamView.getParent(),
this);
virtualController.refreshLayout();
virtualController.show();
}
if (prefConfig.usbDriver) {
@@ -692,6 +693,10 @@ public class Game extends Activity implements SurfaceHolder.Callback,
SpinnerDialog.closeDialogs(this);
Dialog.closeDialogs();
if (virtualController != null) {
virtualController.hide();
}
if (conn != null) {
int videoFormat = decoderRenderer.getActiveVideoFormat();