Skip to content

Commit

Permalink
fix: don't show raw mouse input if its unsupported
Browse files Browse the repository at this point in the history
parity with vanilla hiding it from the mouse options screen
fixes #11
  • Loading branch information
KingContaria committed Aug 10, 2024
1 parent 864cc82 commit 855326e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ public boolean hasWidget() {
this.register("mouseWheelSensitivity", "options.mouse_settings", Option.MOUSE_WHEEL_SENSITIVITY);
this.register("discrete_mouse_scroll", "options.mouse_settings", Option.DISCRETE_MOUSE_SCROLL);
this.register("touchscreen", "options.mouse_settings", Option.TOUCHSCREEN);
this.register("rawMouseInput", "options.mouse_settings", Option.RAW_MOUSE_INPUT);
this.register(new BooleanOptionStandardSetting("rawMouseInput", "options.mouse_settings", this.options, Option.RAW_MOUSE_INPUT) {
@Override
public boolean hasWidget() {
return super.hasWidget() && InputUtil.isRawMouseMotionSupported();
}
});

// Controls
this.register("autoJump", "options.controls", Option.AUTO_JUMP);
Expand Down

0 comments on commit 855326e

Please sign in to comment.