forked from Clones/Controlify
rewrite most of joystick mapping
This commit is contained in:
@ -31,7 +31,7 @@ public class JoystickButtonBind implements IBind<JoystickState> {
|
||||
@Override
|
||||
public void draw(PoseStack matrices, int x, int centerY) {
|
||||
String type = joystick.type().identifier();
|
||||
String button = joystick.mapping().button(buttonIndex).identifier();
|
||||
String button = joystick.mapping().buttons()[buttonIndex].identifier();
|
||||
var texture = new ResourceLocation("controlify", "textures/gui/joystick/" + type + "/button_" + button + ".png");
|
||||
|
||||
RenderSystem.setShaderTexture(0, texture);
|
||||
|
Reference in New Issue
Block a user