forked from Clones/Controlify
more themes, fix input events passing to ingame from screen, changelog, fix button guide sneak wrong in some places
This commit is contained in:
@ -9,7 +9,8 @@ public enum BuiltinGamepadTheme implements NameableEnum {
|
||||
XBOX_ONE("Xbox One", "xbox_one"),
|
||||
DUALSHOCK4("Dualshock 4", "dualshock4"),
|
||||
DUALSHOCK3("Dualshock 3", "dualshock3"),
|
||||
DUALSENSE("Dualsense", "dualsense");
|
||||
DUALSENSE("Dualsense", "dualsense"),
|
||||
STEAM_DECK("Steam Deck", "steam_deck");
|
||||
|
||||
private final String name, id;
|
||||
|
||||
|
@ -81,16 +81,6 @@ public class GamepadController extends AbstractController<GamepadState, GamepadC
|
||||
state = GamepadState.EMPTY;
|
||||
}
|
||||
|
||||
public void consumeButtonState() {
|
||||
this.state = new GamepadState(state().gamepadAxes(), state().rawGamepadAxes(), GamepadState.ButtonState.EMPTY, state().gyroDelta(), state().absoluteGyroPos());
|
||||
}
|
||||
|
||||
GLFWGamepadState getGamepadState() {
|
||||
GLFWGamepadState state = GLFWGamepadState.create();
|
||||
GLFW.glfwGetGamepadState(joystickId, state);
|
||||
return state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setRumble(float strongMagnitude, float weakMagnitude, RumbleSource source) {
|
||||
if (!canRumble()) return false;
|
||||
|
Reference in New Issue
Block a user