1
0
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:
isXander
2023-04-16 23:10:40 +01:00
parent 800f219fa6
commit b769661765
38 changed files with 145 additions and 48 deletions

View File

@ -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;

View File

@ -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;