Skip to content
Controller Utilitys for libGDX
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android-controllers
core-advcontrollers AbstractController and Jamepad: Changed vibration api interface Jul 31, 2019
core-mapping Mappings: add method to identify broken buttons that should be ignore… Sep 20, 2019
core-scene2d Scene2d: New Flag to disable MouseOver emulation events on focus change Dec 3, 2018
desktop-jamepad AbstractController and Jamepad: Changed vibration api interface Jul 31, 2019
gradle/wrapper Gradle Update, Artifact Id fixed Feb 5, 2018
gwt-controllers AndroidControllers: Added vibration support, thanks to @GrantOjanen Jul 31, 2019
ios-controllers AdvancedController: returns default mapping for platform or controlle… Jul 21, 2019
jamepad-test-app AbstractController and Jamepad: Changed vibration api interface Jul 31, 2019
.gitignore Initial commit Nov 27, 2017
.travis.yml Travis yml Jul 31, 2019
LICENSE
README.md v0.4.0 Sep 14, 2019
androidpublish.gradle
build.gradle v1.0.0 Sep 27, 2019
gradle.properties Initial commit Nov 27, 2017
gradlew Travis CI Nov 27, 2018
gradlew.bat Initial commit Nov 27, 2017
publish.gradle Unnecessary subprojects deleted, others renamed Nov 27, 2017
settings.gradle Added Android controllers from 1.9.10 Jul 20, 2019

README.md

gdx-controllerutils

Utilities for using controllers with libGDX, and enhanced drop-in replacements for the official gdx-controllers extension

Build Status Maven Central

Subprojects

All subprojects are technically independant, you can use only one of them in your project. They are bundled in a single Github project because all have something to do with Game Controller Input and libGDX.

core-mapping

Support configurable mappings for game controllers in your projects.

Documentation

core-scene2d

Key and button supporting Stage with focusable Actors for Scene2d. This is also usable in games without Game Controller support.

Documentation

core-advcontrollers

Advanced core interfaces giving you more control over connected controllers: Rumble, query available buttons and axis, query standard button constants, and more.

Documentation

desktop-jamepad

Jamepad implementation for libGDX' controller interfaces. Bring hotplugging to Lwjgl2 by just changing your gradle file!

Documentation

ios-controllers

iOS controller implementation (MFI and iCade) for libGDX' controller interfaces.

Documentation

gwt-controllers

The official GWT implementation, but with enhancements, regular releases and bugfixes down to libGDX 1.9.5+.

More info

android-controllers

The official Android implementation, but with enhancements, regular releases and bugfixes down to libGDX 1.9.5+.

More info

Demos and examples

core-scene2d is shown with sources in raeleus' Shadow Walker UI demo.

See core-mapping and core-scene2d in action in my game Falling Lightblocks Web/Android/FireTV. Take a look at the SMC Platformer example project for sources using core-mapping.

Installation

This project is published to the Sonatype Maven repository. You can integrate the lib into your project by just adding the dependencies to your build.gradle file.

Define the version of this API right after the gdxVersion:

gdxVersion = '1.9.6' //or another gdx version you use
cuversion = '0.4.0'

Then add the needed dependencies to your project. You will find the artifact ids on the subproject's wiki sites.

Building from source

To build from source, clone or download this repository, then open it in Android Studio. Perform the following command to compile and upload the library in your local repository:

gradlew clean uploadArchives -PLOCAL=true

See build.gradle file for current version to use in your dependencies.

News & Community

You can get help on the libgdx discord.

License

The project is licensed under the Apache 2 License, meaning you can use it free of charge, without strings attached in commercial and non-commercial projects. We love to get (non-mandatory) credit in case you release a game or app using this project!

You can’t perform that action at this time.