MacOS Input Fixes

MacOS Input Fixes

969k Downloads

Shift+Left click(not in inventory)

MetalForgeX opened this issue · 17 comments

commented

Can you fix the issue where when holding shift you are unable to left click to perform an action? (for example sneaking and mining)

commented

Hi, I don't experience this issue on my installation, could you please provide some additional info so I can diagnose the issue:

  • What mice you are using and whether it reproduces with other mice (including the the trackpad if you have one)
  • What your OS is (presumably macOS) and the OS version
  • The Minecraft version you're experiencing this on
  • Your fabric loader version
  • Any other mods you have and their versions
  • If you have changed any keybinds and if so, what you've changed them to
  • If your computer is x64 (Intel CPU) or arm64 (e.g. M1 and M2)
  • What shift you are using (left or right of keyboard)
  • Does the issue also occur when holding the other shift, left control, left command, left option/alt, or tab instead of shift?

If you need any help with what I mean by these please let me know, but if you only don't understand 1 of them, please do the rest first.

commented

Can you also confirm you are using version 1.1 of the mod, and send a screenshot of the options you have set for the mod.

commented
commented
commented

You may also have to change the following option temporarily if it doesn't show the 'open anyway' prompt in system preferences after unlocking the pane:
image

commented

Can you please test an app for me: download InputTester.app.zip from here.

To open it, extract the zip file, right click the InputTester app (from zip file) in your downloads and select 'show package contents', open folder Contents then MacOS, double click InputTester, it will complain about it being from an unidentified developer, so allow that in system preferences > security & privacy > general and it should open when you click 'open anyway' then 'open'. Once opened it should show a terminal window and an empty window with the title 'window'.

When you open it, please select the 'window', and perform a left click, it should show something similar to the following in the terminal window, indicating it received the left click:
image

Can you then try it with shift pressed first (i.e. press shift, press left click, release left click, release shift), and then with shift pressed second (i.e. press left click, press shift, release shift, release left click), and then in a mixed order (i.e. press left click, press shift, release left click, release shift), and confirm that they all show the same message as just performing a left click.

This will allow me to possibly if the way that the mod gets input causes it to be missed (since this app should do it in about the same way), or something else.

Edit: the current version doesn't print messages indicating whether shift was pressed or not, I may have to update it to that depending on the output.

commented
commented

You need to open it from the terminal, did you open it with this file?
image

You can view the contents of an app by right clicking it and selecting 'show package contents', that should allow you to get here, if you did that, then the terminal window should be on this app:
image

commented

image

commented
commented

Can you try the attached version of the mod in minecraft (you'll have to unzip it).
It should print out to the minecraft log all mouse events, e.g.

[19:16:35] [Render thread/INFO]: [STDOUT]: Mouse button event 0 (true) with mods 0
[19:16:36] [Render thread/INFO]: [STDOUT]: Mouse button event 0 (false) with mods 1

Mouse button event 0 means left click, true/false means press/release, mods 0 means no buttons pressed, mods 1 means shift is pressed when the event happens (mods can have other values if other modifier keys are pressed e.g. control, alt, command, so don't press those while testing it). Can you try the same orderings from before and see if they all show up correctly.

macos-input-fixes-1.1.jar.zip

commented

Have you had a chance to test it?

commented
commented

Hi, it doesn't show the image here, my guess is it can't extract images (or whatever you presumably attached) from email replies, can you put it on the site directly: #5

commented

Screen Shot 2022-11-29 at 1 19 12 PM

commented

Thanks, does the issue occur in all parts of the game, e.g. menu screens, playing game, in inventory, in crafting table? Can you test these things if you haven't already and let me know which, if any, still do what the left click+shift should do while holding shift.

commented

Inventory and crafting work just fine with shift click and does exactly what it should(builds full stack and transfers inventory). In menus I can hold shift and click still works. In game if I hold either shift I can right click but not left click. This means I can't sneak(holding shift) and mine or attack mobs or use server special ability.