inpututil: bug fix: {Key,MousePress}KeyDuration returned a wrong value on browsers and mobiles

Closes #3322
This commit is contained in:
Hajime Hoshi
2025-09-26 22:17:04 +09:00
parent 9666878ad5
commit 55bb572a27
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -134,6 +134,10 @@ public class EbitenView extends ViewGroup implements InputManager.InputDeviceLis
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// Ignore key repeat events.
if (event.getRepeatCount() > 0) {
return super.onKeyDown(keyCode, event);
}
Ebitenmobileview.onKeyDownOnAndroid(keyCode, event.getUnicodeChar(), event.getSource(), event.getDeviceId());
return true;
}