mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 00:29:50 -04:00
Add more filters while dispatching events.
This commit is contained in:
parent
17ab69dfad
commit
606d633ee3
@ -616,8 +616,8 @@ public class BaseMainActivity extends LoggableActivity {
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||
System.out.println(event);
|
||||
if(event.getRepeatCount() != 0) return true; //We consume but no need to recheck since it was already sent once.
|
||||
|
||||
if(event.getRepeatCount() != 0 || event.getAction() == KeyEvent.ACTION_MULTIPLE) return true; //We consume but no need to recheck since it was already sent once.
|
||||
|
||||
if(Gamepad.isGamepadEvent(event)){
|
||||
if(gamepad == null){
|
||||
gamepad = new Gamepad(this, event.getDevice());
|
||||
|
Loading…
x
Reference in New Issue
Block a user