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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
realSquidCoder marked this conversation as resolved.
Show resolved Hide resolved
}
}
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