finalburnneo / FBNeo

FinalBurn Neo - We are Team FBNeo.
http://neo-source.com
Other
879 stars 354 forks source link

win32: Add input macros for System Next State and System Previous State #1792

Closed handledexception closed 1 month ago

handledexception commented 1 month ago

Description

This PR adds input macros called "System Next State" and "System Previous State" to the Win32 build of FBNeo. These macros can then be bound to inputs, in the same manner as the existing "System Save State" and "System Load State" macros. The System Next State macro triggers the F11 hotkey, which selects the next save state slot, while the System Load State macro triggers the F8 hotkey, selecting the previous save state slot.

Motivation

I got tired of having to take my hands off of my gamepad to press F8 and F11 to switch between save state slots. I wanted to be able to bind these shortcuts to buttons on my gamepad.

How has this been tested?

I've tested this by building the Win32 build, mapping the new macros to gamepad buttons, and verifying that they perform the expected actions while running a game. Each macro is only trigged a single time for each button press, which is how the existing System Save State and System Load State macros behave.

dinkc64 commented 1 month ago

A nice addition, thanks! :)