ebiten/cmd/ebitenmobile/_files
Hajime Hoshi e2f26b9dac internal/gamepad: ignore the very first MotionEvent with 0 value for Android
On Android, MotionEvent with 0 values might come for axes when connecting
a gamepad, even though a user didn't touch any axes. This is problematic
especially for tirgger axes, where the default value should be -1.

This change fixes the issue by adding a new state `axesReady` to check
if an axis is really touched or not. If an axis is not touched yet,
a button value for a standard (trigger) button always returns 0.

This change also removes an old hack to initialize axis values for
triggers.

Closes #2598
2024-03-21 22:48:33 +09:00
..
EbitenSurfaceView.java cmd/ebitenmobile: update GLES version to 3.0 2023-04-19 22:49:35 +09:00
EbitenView.java internal/gamepad: ignore the very first MotionEvent with 0 value for Android 2024-03-21 22:48:33 +09:00
EbitenViewController.h cmd/ebitenmobile: use go:embed (#2435) 2022-11-04 17:20:21 +09:00
EbitenViewController.m cmd/ebitenmobile: bug fix: accessing a view property caused deadlock on iOS 2023-09-21 19:37:39 +09:00