All Projects → libgdx → gdx-controllers

libgdx / gdx-controllers

Licence: Apache-2.0 license
A libGDX cross platform game controllers extension

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to gdx-controllers

joypad.js
JavaScript library that lets you connect and use various gaming controllers with browsers that support the Gamepad API. Less than 5KB in size with zero dependencies and support for button press, axis movement events and vibration play effect.
Stars: ✭ 97 (+148.72%)
Mutual labels:  gamepad, gamepad-library
gdx-controllerutils
Controller Utilities for libGDX
Stars: ✭ 48 (+23.08%)
Mutual labels:  libgdx, gamepad
Libgdx
Desktop/Android/HTML5/iOS Java game development framework
Stars: ✭ 19,420 (+49694.87%)
Mutual labels:  libgdx, macosx
12306-electron
🚄 electron-vue构建12306跨平台(Mac、Windows、Linux)客户端
Stars: ✭ 125 (+220.51%)
Mutual labels:  macosx
appleloops
A utility to deploy the additional audio content packages for Apple's audio editing programs.
Stars: ✭ 20 (-48.72%)
Mutual labels:  macosx
dotfiles
The Dotfiles resources aggregate a collection of standalone 'dotfiles' to help you customize your system and related services into one cohesive and consistent approach.
Stars: ✭ 17 (-56.41%)
Mutual labels:  macosx
LunarGdx
A networking library for LibGDX utilizing Netty allowing easy creation of multiplayer games.
Stars: ✭ 23 (-41.03%)
Mutual labels:  libgdx
ssh-agent
A shell script that loads ssh-agent and keys into each terminal session of a workstation
Stars: ✭ 15 (-61.54%)
Mutual labels:  macosx
pomodoro-cycle-app
Open Source macOS pomodoro app. Pomodoro Cycle
Stars: ✭ 55 (+41.03%)
Mutual labels:  macosx
ShapeOfThingsThatWere
strategy game based on hex map and discoveries
Stars: ✭ 23 (-41.03%)
Mutual labels:  libgdx
ArduinoGamepad
A GamePad HID library for Arduino Pro Micro/Leonardo (ATMega32u4)
Stars: ✭ 66 (+69.23%)
Mutual labels:  gamepad
SpaceProject
A top-down 2D, procedurally generated space exploration and shooter game using libGDX. Kinda like Asteroids, only a little bigger.
Stars: ✭ 28 (-28.21%)
Mutual labels:  libgdx
argus
Argus Advanced Remote & Local Keylogger For macOS and Windows
Stars: ✭ 87 (+123.08%)
Mutual labels:  macosx
thelema-engine
Thelema - 3D graphics engine, written in Kotlin. Based on sources of libGDX.
Stars: ✭ 51 (+30.77%)
Mutual labels:  libgdx
sdlada
Ada 2012 bindings to SDL 2
Stars: ✭ 85 (+117.95%)
Mutual labels:  macosx
cocos2d-java
cocos2d java api base libgdx
Stars: ✭ 15 (-61.54%)
Mutual labels:  libgdx
Mojave-Dynamic-Wallpaper
Automatic Changing Mojave Wallpaper
Stars: ✭ 15 (-61.54%)
Mutual labels:  macosx
jetbrains-utility
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
Stars: ✭ 62 (+58.97%)
Mutual labels:  macosx
Starlight
Automatic macOS Dark/Light shift based on surrounding ambient light.
Stars: ✭ 26 (-33.33%)
Mutual labels:  macosx
JoyKeyMapper
Nintendo Joy-Con/ProController Key mapper for macOS
Stars: ✭ 82 (+110.26%)
Mutual labels:  gamepad

🎮️ Game Controller Extension for libGDX, Version 2

Use game controllers with ease in your libGDX games.

📖️ Documentation - 🎁️ Feature overview - Compatibility

🚀️ Migration guide from v1

💾️ Installation

The recommended way to use gdx-controllers is via dependency management with Gradle or Maven. Artifacts are available in Snapshot Repository and Maven Central.

Sonatype Nexus (Releases) Sonatype Nexus (Snapshots)

project-root/build.gradle:

ext {
    gdxControllersVersion = '2.0.1' // see badges above for latest versions
}

Add the following dependencies:

core:

implementation "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion"

desktop:

implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"

This will automatically fetch the underlying SDL-based natives and Java wrappers. If you want to use a newer version, add the dependency yourself:

implementation("com.badlogicgames.jamepad:jamepad:$jamepadVersion") {
    exclude group: 'com.badlogicgames.gdx', module: 'gdx-jnigen-loader'
}

Make sure to check the compatibility doc when doing so.

android:

implementation "com.badlogicgames.gdx-controllers:gdx-controllers-android:$gdxControllersVersion"

Proguard setting:

-keep class com.badlogic.gdx.controllers.android.AndroidControllers { *; }

ios:

implementation "com.badlogicgames.gdx-controllers:gdx-controllers-ios:$gdxControllersVersion"

robovml.xml needs the following lines added to forceLinkClasses and frameworks:

<pattern>com.badlogic.gdx.controllers.IosControllerManager</pattern> 
....
	<framework>GameController</framework>

If you forget to explicitly link the framework, no game controller will show up.

html:

implementation "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion:sources"
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion:sources"

You also need to add the following file to your GdxDefinition.gwt.xml in your html project:

<inherits name="com.badlogic.gdx.controllers" />
<inherits name="com.badlogic.gdx.controllers.controllers-gwt"/>

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!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].