Since we have no regular libGDX releases anymore, it is a problem to fix or extend backend behaviour that can't be overriden. While there's always a way to work around bugs in the core project, this is often not possible in the backends.
This is where this repo comes in.
If you need to change build-in behaviour, but don't manage to get the complete libGDX repo to build, don't want to build your very own version or don't want to use snapshot versions, this repo is what you need. Check my own additions to see what else is changed.
- Clone this repo
- Checkout the revision you need (next paragraph)
- Type
gradlew install
- Change your project's backend dependency to the one you wish
In case you don't want to change something here yourself, but just want to use some of the additions, you can also use a Jitpack dependency. Don't forget to add Jitpack as a repo to your project:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
You can get help on the libgdx discord.
Checkout branch release/1.911.0 to use this version, or use the following dependencies for GWT:
implementation 'com.github.MrStahlfelge.gdx-backends:gdx-backend-gwt:1.911.0'
implementation 'com.github.MrStahlfelge.gdx-backends:gdx-backend-robovm:1.911.0'
Additions compared to official backends for 1.9.11:
- GWT: Switched to WebAudio, fixes sounds for mobiles too. Original PR by @barkholt. See current PR for more information.
- GWT: Faster bootstrap process by lazy loading assets. See current PR for more information.
- GWT: Fixed density problems on mobile with new config setting. See current PR
- GWT: Pulled feature policy implementation by @SimonIT. Pending PR
- iOS: Handles hardware keyboard events like on other platforms Pending PR
- Move resizable browser window support into the backend, no template hazzle any more
- Electron extensions
See readme on branch release/1.910.2