isXander / YetAnotherConfigLib

YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
91 stars 34 forks source link

Propagate right click mouse events to widgets contained in option lists #180

Closed Crendgrim closed 1 month ago

Crendgrim commented 1 month ago

Starting with Minecraft 1.20.2, only left click events are passed to list elements. This adds the required override to the respective versions to get right click events.

With this change, right-clicking a cycling controller (like enum controller) element properly walks backwards through the list.

Closes #157

Crendgrim commented 1 month ago

This does not actually allow for "dragging events" for right mouse buttons yet. ETA: fixed now