forked from Clones/Controlify
refactor button guide, bindings and controller identification
This commit is contained in:
@ -39,8 +39,7 @@ public class JoystickAxisBind implements IBind<JoystickState> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(PoseStack matrices, int x, int centerY, Controller<JoystickState, ?> controller) {
|
||||
if (controller != joystick) return;
|
||||
public void draw(PoseStack matrices, int x, int centerY) {
|
||||
JoystickMapping mapping = joystick.mapping();
|
||||
|
||||
String type = joystick.type().identifier();
|
||||
@ -77,6 +76,11 @@ public class JoystickAxisBind implements IBind<JoystickState> {
|
||||
return object;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Controller<JoystickState, ?> controller() {
|
||||
return joystick;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
Reference in New Issue
Block a user