Skip navigation links

sdl2gdx API

Java SDL - GDX Controllers

See: Description

Packages 
Package Description
org.libsdl  
uk.co.electronstudio.sdl2gdx  
uk.co.electronstudio.sdl2gdx.tests  

Java SDL - GDX Controllers

This library provides APIs at three layers:

  1. A Java wrapper around SDL. Currently we wrap most of Joystick and GameController. PRs to wrap further APIs are welcome. This wrapper is as close to the C source as possible, so you should be able to port any SDL examples with no changes.
  2. An OO wrapper on top of layer 1. The same functions as provided by SDL, but with a class based API to make them more friendly to use.
  3. An implementation of LibGDX Controller API on top of layer 2. You can slot this straight in to any LibGDX app, or you can use it directly in a non-LibGDX app.

Thanks to Jamepad by William Harman for providing the build system and inspiring this project.

Skip navigation links