mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
(feature) reload mouse when toggle raw mouse input
This commit is contained in:
parent
498847d881
commit
d3d05db169
@ -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":
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user