|
13 | 13 | import meteordevelopment.meteorclient.events.meteor.ActiveModulesChangedEvent; |
14 | 14 | import meteordevelopment.meteorclient.events.meteor.KeyEvent; |
15 | 15 | import meteordevelopment.meteorclient.events.meteor.ModuleBindChangedEvent; |
16 | | -import meteordevelopment.meteorclient.events.meteor.MouseButtonEvent; |
| 16 | +import meteordevelopment.meteorclient.events.meteor.MouseClickEvent; |
17 | 17 | import meteordevelopment.meteorclient.pathing.BaritoneUtils; |
18 | 18 | import meteordevelopment.meteorclient.settings.Setting; |
19 | 19 | import meteordevelopment.meteorclient.settings.SettingGroup; |
@@ -222,12 +222,12 @@ public boolean isBinding() { |
222 | 222 |
|
223 | 223 | @EventHandler(priority = EventPriority.HIGHEST) |
224 | 224 | private void onKeyBinding(KeyEvent event) { |
225 | | - if (event.action == KeyAction.Release && onBinding(true, event.key, event.modifiers)) event.cancel(); |
| 225 | + if (event.action == KeyAction.Release && onBinding(true, event.input.key(), event.input.modifiers())) event.cancel(); |
226 | 226 | } |
227 | 227 |
|
228 | 228 | @EventHandler(priority = EventPriority.HIGHEST) |
229 | | - private void onButtonBinding(MouseButtonEvent event) { |
230 | | - if (event.action == KeyAction.Release && onBinding(false, event.button, 0)) event.cancel(); |
| 229 | + private void onButtonBinding(MouseClickEvent event) { |
| 230 | + if (event.action == KeyAction.Release && onBinding(false, event.input.button(), 0)) event.cancel(); |
231 | 231 | } |
232 | 232 |
|
233 | 233 | private boolean onBinding(boolean isKey, int value, int modifiers) { |
@@ -259,13 +259,13 @@ else if (value == GLFW.GLFW_KEY_ESCAPE) { |
259 | 259 | @EventHandler(priority = EventPriority.HIGH) |
260 | 260 | private void onKey(KeyEvent event) { |
261 | 261 | if (event.action == KeyAction.Repeat) return; |
262 | | - onAction(true, event.key, event.modifiers, event.action == KeyAction.Press); |
| 262 | + onAction(true, event.input.key(), event.input.modifiers(), event.action == KeyAction.Press); |
263 | 263 | } |
264 | 264 |
|
265 | 265 | @EventHandler(priority = EventPriority.HIGH) |
266 | | - private void onMouseButton(MouseButtonEvent event) { |
| 266 | + private void onMouseClick(MouseClickEvent event) { |
267 | 267 | if (event.action == KeyAction.Repeat) return; |
268 | | - onAction(false, event.button, 0, event.action == KeyAction.Press); |
| 268 | + onAction(false, event.input.button(), 0, event.action == KeyAction.Press); |
269 | 269 | } |
270 | 270 |
|
271 | 271 | private void onAction(boolean isKey, int value, int modifiers, boolean isPress) { |
|
0 commit comments