Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the Cursor tracking mode as an option. #173

Merged
merged 8 commits into from
Feb 10, 2025
9 changes: 3 additions & 6 deletions Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,11 @@ namespace {
}
if (line.find("[TRACK_MODE") != string::npos) {
string result = parseStrFromLine("TRACK_MODE", line);
if (result == "CENTER") {
config.track_mode = Config::TRACKING_CENTER;
}
else if (result == "NONE") {
if (result == "NONE") {
config.track_mode = Config::TRACKING_NONE;
}
else if (result == "FOCUS") {
config.track_mode = Config::TRACKING_FOCUS;
else /*if (result == "CENTER") */{ //kept as a comment for future fixes or reimplementation.
config.track_mode = Config::TRACKING_CENTER;
}
}
if (line.find("[INVERT_MOUSE_Z") != string::npos) {
Expand Down
2 changes: 1 addition & 1 deletion UserInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void action_cycletrackingmode(uint32_t keymod)
}
else {
ssConfig.config.track_mode = (Config::trackingmode)(ssConfig.config.track_mode + 1);
if (ssConfig.config.track_mode >= Config::TRACKING_INVALID) {
if (ssConfig.config.track_mode > Config::TRACKING_CENTER) {
ssConfig.config.track_mode = Config::TRACKING_NONE;
}
}
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Template for new versions:
- `stonesense`: fog no longer unnecessarily renders to a separate bitmap

## Removed
- `stonesense`: removed the "follow DF cursor" tracking mode

# 51.02-r1

Expand Down