Top Inners Fields Constructors Methods
com.badlogic.gdx.controllers.desktop

public Class JamepadControllerManager

extends AbstractControllerManager
implements Disposable
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.utils.Disposable
Imports
com.badlogic.gdx.Gdx, com.badlogic.gdx.controllers.AbstractControllerManager, .Controller, .ControllerListener, com.badlogic.gdx.controllers.desktop.support.CompositeControllerListener, .JamepadControllerMonitor, .JamepadShutdownHook, com.badlogic.gdx.utils.Array, .Disposable, java.io.IOException

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final CompositeControllerListener
private static ControllerManager
public static Configuration
private static boolean
Inherited from com.badlogic.gdx.controllers.AbstractControllerManager:
controllers

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public static void
public void
public void
dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

public Array<ControllerListener>
public static void
logLastNativeGamepadError()

Writes last native SDL error to error output.

public void
Inherited from com.badlogic.gdx.controllers.AbstractControllerManager:
getControllersgetCurrentController

Field Detail

compositeListenerback to summary
private final CompositeControllerListener compositeListener
controllerManagerback to summary
private static ControllerManager controllerManager
jamepadConfigurationback to summary
public static Configuration jamepadConfiguration
nativeLibInitializedback to summary
private static boolean nativeLibInitialized

Constructor Detail

JamepadControllerManagerback to summary
public JamepadControllerManager()

Method Detail

addListenerback to summary
public void addListener(ControllerListener listener)

Implements com.badlogic.gdx.controllers.ControllerManager.addListener.

Annotations
@Override
addMappingsFromFileback to summary
public static void addMappingsFromFile(String path) throws IOException, IllegalStateException
See Also
com.studiohartman.jamepad.ControllerManager#addMappingsFromFile(String)
clearListenersback to summary
public void clearListeners()

Implements com.badlogic.gdx.controllers.ControllerManager.clearListeners.

Doc from com.badlogic.gdx.controllers.ControllerManager.clearListeners.

Clear all listeners

Annotations
@Override
disposeback to summary
public void dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Doc from com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

Annotations
@Override
getListenersback to summary
public Array<ControllerListener> getListeners()

Implements com.badlogic.gdx.controllers.ControllerManager.getListeners.

Annotations
@Override
logLastNativeGamepadErrorback to summary
public static void logLastNativeGamepadError()

Writes last native SDL error to error output.

Note

Output might not indicate an error, but could be a warning as well. Use for debugging purposes.

removeListenerback to summary
public void removeListener(ControllerListener listener)

Implements com.badlogic.gdx.controllers.ControllerManager.removeListener.

Annotations
@Override
com.badlogic.gdx.controllers.desktop back to summary

private Class JamepadControllerManager.ManageControllers

extends ManageCurrentControllerListener
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from com.badlogic.gdx.controllers.AbstractControllerManager.ManageCurrentControllerListener:
axisMovedbuttonDownbuttonUp

Constructor Detail

ManageControllersback to summary
private ManageControllers()

Method Detail

connectedback to summary
public void connected(Controller controller)

Overrides com.badlogic.gdx.controllers.AbstractControllerManager.ManageCurrentControllerListener.connected.

Implements com.badlogic.gdx.controllers.ControllerListener.connected.

Doc from com.badlogic.gdx.controllers.ControllerListener.connected.

A Controller got connected.

Annotations
@Override
disconnectedback to summary
public void disconnected(Controller controller)

Overrides com.badlogic.gdx.controllers.AbstractControllerManager.ManageCurrentControllerListener.disconnected.

Implements com.badlogic.gdx.controllers.ControllerListener.disconnected.

Doc from com.badlogic.gdx.controllers.ControllerListener.disconnected.

A Controller got disconnected.

Annotations
@Override