[API] Ability to check whether EMI keybinds are pressed
XFactHD opened this issue ยท 2 comments
An API to check whether a certain keybind is pressed when given a key code and scan code would allow mods to do things like opening recipes for or usages of an item when hovering non-slot widgets.
For context, I have a crafting system that looks similar to vanilla's stonecutter with a grid of buttons and I would like to allow players to open the "show recipe" screen of the item shown on the button they are hovering.
EMI is unlikely to expose such a large amount of unstable API surface. However, to accomplish your goal, you can register a stack provider for your screen. EmiStackInteraction
s can specify a recipe context for lookups.