
com.kennycason.gdx.controller.mapping.AxisMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-controller Show documentation
Show all versions of gdx-controller Show documentation
A library to help with controller management in LibGDX.
The newest version!
package com.kennycason.gdx.controller.mapping;
import com.badlogic.gdx.utils.ObjectMap;
/**
* Created by kenny on 1/5/16.
*/
public class AxisMapper {
protected final ObjectMap mapping = new ObjectMap<>();
public AxisMapper() {}
public void map(V control, Axis mapping) {
this.mapping.put(control, mapping);
}
public Axis get(V control) {
return mapping.get(control, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy