Litematica

Litematica

8M Downloads

Ctrl+scroll Tool Selection Issues on Mac

Lapask opened this issue ยท 7 comments

commented

It seems as though control+scrolling is finicky on Mac.

It scrolls through the menu item hotbar without staying on the stick tool, making it nearly impossible to select specific tools

commented

Yeah I've heard the same report from others recently. I'll try to change some of the input handling methods to use doubles instead of casting to ints, which should hopefully fix the issue of "weird" small scroll inputs getting lost currently.

Unfortunately I think that change may need to wait for the malilib 0.10.0 release and the corresponding round of updates to all the dependant mods, as it will break compatibility with the current/old versions.

commented

Could you try these builds, if they fix your issue?

https://masa.dy.fi/tmp/minecraft/mods/malilib/malilib-rift-1.13.2-0.9.5.jar
https://masa.dy.fi/tmp/minecraft/mods/litematica/litematica-rift-1.13.2-0.0.0-dev.20190519.002745.jar

I'm using Fabric and MultiMC and eve the latest version of Litematica (litematica-fabric-1.16.4-0.0.0-dev.20201103.184101.jar) and MaLiLib (malilib-fabric-1.16.4-0.10.0-dev.21+arne.2.jar) downloaded yesterday (Dec. 23, 2020) are not working for Ctrl+Scroll on a Mac. Suggestions?

The only difference between my issue and the OP's is that holding down Ctrl+Scroll doesn't change the Hotbar items. My tool stays as the stick but the Mode of the stick does not change. I have verified that operationModeChangeModifier is set to LEFT_CONTROL still (default) as well as selectionModeCycle is set to LEFT_CONTROL + M still (default) but still no luck. I have to manually go into the Menu each time and click the Tool Mode button to get it to change.

commented

@spencerjw Can you test this build: https://masa.dy.fi/mcmods/litematica/litematica-fabric-1.16.4-0.0.0-dev.20201225.203013.jar

There is a new option in the Generic category: debugLogging.
Enable that and then try the normal Ctrl + scrolling while holding the tool, and you should see some debug prints in the game console, like this:

[20:28:52] [main/INFO]: Mouse scroll: x: 416, y; 191, wheel: 1.0
[20:28:53] [main/INFO]: Mouse scroll: x: 416, y; 191, wheel: -1.0

So I'm curious what the wheel values are (on a Mac?).

commented

@maruohon I gave that new file a try and found the debugLogging option and set it to true. But When running the ctrl+Scroll I'm not seeing anything printing to the game console window.

commented

@maruohon So, my scroll wheel is broken, i can still click it, but i cant scroll, is there any way to change the inout for the mode change to something without it?

commented

@itakashiraiya Not in the current version. The handling happens from the mouse input handling, when scroll events are detected, and the modifier hotkey being pressed is checked there. I recently added mouse scrolls to the keybind system in malilib in the main dev version, so in future releases it would be possible to add the full modifier + scroll as a hotkey. If I add those, they will likely be new hotkeys, since I don't really want to get rid of the current modifier + hard coded scroll either.

So in the current version you would just have to use the non-scroll input options, such as using the tool mode button in the bottom left of the Litematica menu, and I believe there are also separate nudge hotkeys for moving selections around, other than the selectionNudgeModifier + scroll (or at least there are in 1.12.2).