TeamMidnightDust / MidnightControls

A Minecraft mod adding controller support and enhanced controls overall.
https://midnightdust.eu/midnightcontrols/
MIT License
173 stars 28 forks source link

Bug: D-PAD not working well in inventory #277

Open Mister-Curious opened 2 months ago

Mister-Curious commented 2 months ago

D-PAD not working well in inventory

The D-Pad doesn't quite work to navigate the grid in the inventory (as assignable in the Controller Bindings section, eg 'Move Slot Up'). The cursor (pointer) gets stuck on some of the slot boundaries and will not traverse the boundary leaving it stuck. If we observe how this works, we see that the mouse pointer is being moved, but it is not moved in equidistant steps. That is to say, if we press the D-pad left for example, the cursor will not land in the center of the inventory slot, but perhaps more to one side. It almost seems random where it might land on the inventory slot. The very issue of this is that the distance the cursor moves is incorrect.

Steps to reproduce the behavior

  1. Go to Inventory
  2. Click on the D-Pad in any direction
  3. Continue to try and navigate the grid.
  4. Notice the pointer is stuck

Expected behavior Pointer should move the exact same amount of pixels in any given direction (optimally this should be at the center of the slot)

Desktop (please complete the following information):

Thank you for taking the time to read this.