MinicraftPlus / minicraft-plus-revived

Minicraft+, an extension of Notch's original minicraft project, with tons more features.
GNU General Public License v3.0
466 stars 93 forks source link

Improve key detection support in InputHandler #586

Closed BenCheung0422 closed 8 months ago

BenCheung0422 commented 9 months ago

This is a remake of both #515 and #533. This resolves the input key detecting problems in both modifiers and menu input transitions. An abstract class is added in this case, also ensuring safety for keys, without directly modifying the fields or states of the keys. No support for compounded inputs is removed. For now, + is necessary for compounded inputs consisting of key mappings. The problems (related bugs) some menus and actions not detecting properly have been resolved.