Skip to content

Commit

Permalink
Configurable Debounce In BoardConfig.h (OpenStickCommunity#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
speedypotato authored Jun 13, 2024
1 parent 25ee928 commit ea29b26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
#define DEFAULT_PS4CONTROLLER_TYPE PS4_CONTROLLER
#endif

#ifndef DEFAULT_DEBOUNCE_DELAY
#define DEFAULT_DEBOUNCE_DELAY 5
#endif

#ifndef DEFAULT_PS4_REPORTHACK
#define DEFAULT_PS4_REPORTHACK false
#endif
Expand Down Expand Up @@ -254,7 +258,7 @@ void ConfigUtils::initUnsetPropertiesWithDefaults(Config& config)
INIT_UNSET_PROPERTY(config.gamepadOptions, fourWayMode, false);
INIT_UNSET_PROPERTY(config.gamepadOptions, profileNumber, 1);
INIT_UNSET_PROPERTY(config.gamepadOptions, ps4ControllerType, DEFAULT_PS4CONTROLLER_TYPE);
INIT_UNSET_PROPERTY(config.gamepadOptions, debounceDelay, 5);
INIT_UNSET_PROPERTY(config.gamepadOptions, debounceDelay, DEFAULT_DEBOUNCE_DELAY);
INIT_UNSET_PROPERTY(config.gamepadOptions, inputModeB1, DEFAULT_INPUT_MODE_B1);
INIT_UNSET_PROPERTY(config.gamepadOptions, inputModeB2, DEFAULT_INPUT_MODE_B2);
INIT_UNSET_PROPERTY(config.gamepadOptions, inputModeB3, DEFAULT_INPUT_MODE_B3);
Expand Down

0 comments on commit ea29b26

Please sign in to comment.