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
2024-02-10 15:27:51 +09:00
2023-05-30 11:17:36 +09:00
2023-08-02 21:02:34 +09:00
2022-05-26 00:05:31 +09:00
2023-06-10 19:21:04 +09:00
2023-05-10 16:10:38 +09:00
2023-09-05 22:35:13 +09:00
2023-03-18 11:24:16 +09:00
2023-07-23 00:49:45 +09:00
2023-01-28 19:06:38 +09:00
2022-01-05 15:06:41 +09:00
2024-02-10 15:11:41 +09:00
2024-02-10 15:11:41 +09:00
2023-03-15 03:18:28 +09:00
2017-01-30 18:57:49 +09:00
2023-09-23 18:25:47 +09:00
2023-08-29 01:42:20 +09:00
2023-07-23 00:49:45 +09:00
2022-09-24 09:37:59 +09:00

Ebitengine (v2)

Go Reference Build Status

A dead simple 2D game engine for Go

Ebitengine (formerly known as Ebiten) is an open source game engine for the Go programming language. Ebitengine's simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms.

Overview

Platforms

For installation on desktops, see the installation instruction.

Features

  • 2D Graphics (Geometry and color transformation by matrices, Various composition modes, Offscreen rendering, Text rendering, Automatic batches, Automatic texture atlas, Custom shaders)
  • Input (Mouse, Keyboard, Gamepads, Touches)
  • Audio (Ogg/Vorbis, MP3, WAV, PCM)

Packages

Community

License

Ebitengine is licensed under Apache license version 2.0. See LICENSE file.

The Ebitengine logo by Hajime Hoshi is licensed under the Creative Commons Attribution-NoDerivatives 4.0.

Languages
Go 83.9%
C 14.6%
Objective-C 0.7%
Java 0.6%
C++ 0.2%