SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Create unified button events

Pathoschild opened this issue ยท 1 comments

commented

Letting players configure keyboard + controller + mouse button bindings is unnecessarily convoluted. (It involves custom config handling, three separate events, two enums, and manually parsing MouseState.) Unsurprisingly, most mods don't bother and only support keyboard bindings.

Add a single enum which covers keyboard + controller + mouse with unified InputEvents.ButtonPressed / InputEvents.ButtonReleased events, so mods get automatic support for keyboard + controller + mouse button bindings.

commented

Done in develop for the upcoming SMAPI 2.0 release, with some internal changes for SMAPI 1.15.