diff --git a/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java b/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java index 0398009..aa848fe 100644 --- a/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java +++ b/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java @@ -48,6 +48,7 @@ public class GeneralMod extends Mod { public void onChangeSettingValue(Setting setting) { switch(setting.getName()) { case "Raw Mouse Input": + RawInputHandler.reload(); RawInputHandler.toggleRawInput(setting.getValBoolean()); break; case "Menu Background Blur": diff --git a/src/main/java/net/silentclient/client/utils/RawInputHandler.java b/src/main/java/net/silentclient/client/utils/RawInputHandler.java index db4e3f8..e58b450 100644 --- a/src/main/java/net/silentclient/client/utils/RawInputHandler.java +++ b/src/main/java/net/silentclient/client/utils/RawInputHandler.java @@ -19,6 +19,10 @@ public class RawInputHandler { startThread(); } + public static void reload() { + controllers = ControllerEnvironment.getDefaultEnvironment().getControllers(); + } + public static void getMouse() { for (int i = 0; i < controllers.length && mouse == null; i++) { if (controllers[i].getType() == Controller.Type.MOUSE) {