Go to file
Connor Lirot dd021099ff Fix for linux joypad D-pad zeroing
Some controllers (notably those made by 8bitdo) do not always emit an event to zero out a D-pad axis before flipping direction. For example, when rolling around aggressively the D-pad of an 8bitdo SN30 Pro/Pro+, the following may be observed:

```
ABS_HAT0X : -1
ABS_HAT0Y : -1
ABS_HAT0Y : 0
ABS_HAT0Y : 1
ABS_HAT0X : 1
```

Notable here is that no event for `ABS_HAT0X: 0` is emitted between the events for `ABS_HAT0X: -1` and `ABS_HAT0X: 1`. Consequently, the game engine believes that both the negative _and_ positive x-axis directions of the D-pad are activated simultaneously (i.e `is_joy_button_pressed()` returns `true` for both `JOY_BUTTON_DPAD_LEFT` and `JOY_BUTTON_DPAD_RIGHT`), which should be impossible.

This issue is _not_ reproducible on all controllers. The Xbox One controller in particular will not exhibit this problem (it always emits zeroing out events for an axis before flipping direction).

The fix is to always zero out the opposite direction on the D-pad axis in question when processing an event with a nonzero value. This unfortunately wastes a small number of CPU cycles on controllers that behave nicely.

**I have verified this issue is also reproducible in the stable 3.2 branch**
2020-11-11 13:54:46 -06:00
.github CI: Build with warnings=extra to catch 'em all 2020-11-09 15:01:43 +01:00
core Merge pull request #43372 from aaronfranke/clamp-fixes 2020-11-11 13:20:19 +01:00
doc Merge pull request #43449 from nekomatata/line_edit_window_pos 2020-11-11 13:18:55 +01:00
drivers RasterizerDummy fixes. 2020-11-10 11:42:51 +01:00
editor Create Variant built-in functions. 2020-11-10 19:31:10 -03:00
main Merge pull request #43369 from Calinou/allow-svg-project-icon 2020-11-10 09:37:18 +01:00
misc iOS Export: export modification to support plugins 2020-11-10 16:40:01 +03:00
modules Merge pull request #43372 from aaronfranke/clamp-fixes 2020-11-11 13:20:19 +01:00
platform Fix for linux joypad D-pad zeroing 2020-11-11 13:54:46 -06:00
scene Merge pull request #43449 from nekomatata/line_edit_window_pos 2020-11-11 13:18:55 +01:00
servers Remove Attempted to free invalid ID error 2020-11-10 14:22:41 +01:00
tests Variant: Rename Type::_RID to Type::RID 2020-11-09 16:29:04 +01:00
thirdparty Checking for half_image_size[ x & y ] to be non-negative. 2020-11-10 21:23:08 +05:30
.clang-format Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
.clang-tidy Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
.editorconfig C#: Switch games to MSBuild Sdks and .NET Standard 2020-07-25 19:22:01 +02:00
.gitattributes Mark *.tza files as binary in .gitattributes for old Git versions 2020-05-12 09:49:19 +02:00
.gitignore Add a separate nativeSrcsConfigs module to handle Android Studio constraints for native code editor support. 2020-10-29 00:01:14 -07:00
.lgtm.yml Create a basic .lgtm.yml file. 2020-09-03 14:49:14 +01:00
.mailmap Update AUTHORS and DONORS list 2020-09-08 17:22:50 +02:00
AUTHORS.md Update AUTHORS and DONORS list 2020-10-28 14:06:22 +01:00
CHANGELOG.md Mention compatibility-breaking Camera2D offset change in the changelog 2020-09-15 15:56:36 +02:00
CONTRIBUTING.md Document contributing tests to Godot's C++ codebase 2020-09-30 16:29:23 +02:00
COPYRIGHT.txt vulkan: Sync loader, headers and glslang to sdk-1.2.154.0 2020-10-15 12:29:42 +02:00
DONORS.md Update AUTHORS and DONORS list 2020-10-28 14:06:22 +01:00
glsl_builders.py Remove unused Python local variables. 2020-09-11 11:39:15 +01:00
icon.png
icon.svg
LICENSE.txt Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
LOGO_LICENSE.md
logo.png
logo.svg Commit only the SVG files changed by file_format.sh 2020-07-13 14:08:55 -04:00
methods.py Add all headers to VS Project 2020-09-27 18:03:51 +02:00
platform_methods.py Merge python EnvironmentError, IOError and WindowsError into OSError. 2020-09-02 15:58:07 +01:00
README.md Remove GitHub actions badge. 2020-09-01 23:07:35 +05:30
SConstruct SCons: Refactor and cleanup warnings definition 2020-10-08 10:58:05 +02:00
version.py Bump version to 4.0-dev 2020-01-29 13:37:17 +01:00

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported in one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms (HTML5) and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Software Freedom Conservancy not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in Godot Engine

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the homepage.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

To get in touch with the engine developers, the best way is to join the #godotengine-devel IRC channel on Freenode.

To get started contributing to the project, see the contributing guide.

Documentation and demos

The official documentation is hosted on ReadTheDocs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

The official demos are maintained in their own GitHub repository as well.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Code Triagers Badge Translate on Weblate Total alerts on LGTM TODOs