com.badlogic.gdx.controllers.desktop.support.JamepadShutdownHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-controllers-desktop Show documentation
Show all versions of gdx-controllers-desktop Show documentation
Game Controller Extension for libGDX
package com.badlogic.gdx.controllers.desktop.support;
import com.badlogic.gdx.LifecycleListener;
import com.studiohartman.jamepad.ControllerManager;
public class JamepadShutdownHook implements LifecycleListener {
private final ControllerManager controllerManager;
public JamepadShutdownHook(ControllerManager controllerManager) {
this.controllerManager = controllerManager;
}
@Override
public void pause() {
}
@Override
public void resume() {
}
@Override
public void dispose() {
controllerManager.quitSDLGamepad();
}
}