maruohon / malilib

Library mod for masa's client-side Minecraft mods
GNU Lesser General Public License v3.0
294 stars 124 forks source link

Not able to input "Scroll Up/Down" as hotkey #112

Closed ErikderFreak closed 1 year ago

ErikderFreak commented 1 year ago

Issue: When trying to input either Scroll up or Scroll down into a hotkey it won't input. Instead it will go out of the selection and scroll up or down the hotkey config GUI.

How to replicate:

  1. Open any hotkey config from mods based on malilib (or malilib itself).
  2. Select a hotkey to configure.
  3. a) Try inputting mouse Scroll up or Scroll down b) Try inputting a combo of some key and Scroll up or Scroll down
ErikderFreak commented 1 year ago

To be sure it's not the mouse, I did a mouseScrollDebug and the Scroll input seems to be correct: "[03:37:07] [Render thread/INFO]: time: 37B1, tick: 5D4C - xOffset: 0.0, yOffset: 1.0, discrete: false, sensitivity: 1.0, amount: 1.0"

maruohon commented 1 year ago

The old code simply did not hook up the mouse scrolls to the hotkey system. The post-rewrite system does however. So in the new code you can use scrolls as hotkeys.

(The new code is in the liteloader_1.12.2 branch, and it's only in the 1.12.2 LiteLoader releases as of now, plus the "rewrite early port 3" build for 1.19.2, which isn't used by any released mods yet.)

ErikderFreak commented 1 year ago

Oh ok. Good to know. Thank you