Skip to content

Conversation

@JonnyHaystack
Copy link
Owner

@JonnyHaystack JonnyHaystack commented Aug 2, 2023

socd_type is no longer a required parameter of InputMode(). Instead, a SocdType is included as part of each SocdPair, allowing SOCD resolution method to be defined per-axis without the need to override HandleSocd().

New SOCD resolution methods SOCD_DIR1_PRIORITY and SOCD_DIR2_PRIORITY have been added, which was made possible by the above change. These would previously not have been useful, without the ability to define SocdType per SocdPair.

The constructor of FgcMode now accepts two parameters, horizontal_socd and vertical_socd, which can be used to set the SOCD resolution method for the horizontal and vertical axes separately.

The default vertical SOCD resolution for FgcMode is now SOCD_NEUTRAL, due to this being a requirement in some rulesets. This can easily be changed by passing socd::SOCD_DIR2_PRIORITY as the second argument to the constructor in src/config/mode_selection.hpp.

socd_type is no longer a required parameter of InputMode. Instead,
a SocdType is included as part of each SocdPair, allowing SOCD
resolution method to be defined per-axis without the need to override
HandleSocd().

New SOCD resolution methods SOCD_DIR1_PRIORITY and SOCD_DIR2_PRIORITY
have been added, which was made possible by the above change. These
would previously not have been useful, without the ability to define
SocdType per SocdPair.

The constructor of FgcMode now accepts two parameters, horizontal_socd
and vertical_socd, which can be used to set the SOCD resolution method
for the horizontal and vertical axes separately.

The default vertical SOCD resolution for FgcMode is now neutral, due to
this being a requirement in some rulesets. This can easily be changed by
passing socd::SOCD_DIR2_PRIORITY as the second argument to the
constructor in mode_selection.hpp.
@JonnyHaystack JonnyHaystack merged commit 1f92ae6 into master Aug 2, 2023
avahe-kellenberger pushed a commit to avahe-kellenberger/HayBox that referenced this pull request Aug 11, 2023
* feat: SOCD cleaning rework

socd_type is no longer a required parameter of InputMode. Instead,
a SocdType is included as part of each SocdPair, allowing SOCD
resolution method to be defined per-axis without the need to override
HandleSocd().

New SOCD resolution methods SOCD_DIR1_PRIORITY and SOCD_DIR2_PRIORITY
have been added, which was made possible by the above change. These
would previously not have been useful, without the ability to define
SocdType per SocdPair.

The constructor of FgcMode now accepts two parameters, horizontal_socd
and vertical_socd, which can be used to set the SOCD resolution method
for the horizontal and vertical axes separately.

The default vertical SOCD resolution for FgcMode is now neutral, due to
this being a requirement in some rulesets. This can easily be changed by
passing socd::SOCD_DIR2_PRIORITY as the second argument to the
constructor in mode_selection.hpp.

* fix: correct function names
@JonnyHaystack JonnyHaystack deleted the feature/socd_revamp branch November 14, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants