Googled around a lot and only found the opposite, turning temporary button presses into toggles.
This code simulates a button press for a desired amount of time when the toggle switch is flipped on, then presses again when the toggle is flipped off.
The purpose of this is for games that do not...