Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoviola-systemelectronics committed Dec 5, 2024
1 parent d87a138 commit 0ef712f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,9 @@ public boolean onKeyUp(int keyCode, KeyEvent event) {

private boolean handleKeyEvent(int keyCode, KeyEvent event) {
Log.d("keyboard", event.toString());
// Se non hai gestito l'evento, passa al gestore predefinito
if(scrcpy != null)
scrcpy.sendKeyevent(keyCode);
return super.onKeyDown(keyCode, event);
return true;
}

@Override
Expand Down

0 comments on commit 0ef712f

Please sign in to comment.