Add categories for control bindings

This commit is contained in:
Henrik Rydgård committed 2023-12-20 16:20:26 +01:00
1 parent 2d4e59eb62
commit 9cb3d03098
7 files changed
+70 -14

No files matched your search

+6 -1
View File
@@ -36,7 +36,10 @@ class SingleControlMapper;
class ControlMappingScreen : public UIDialogScreenWithGameBackground {
public:
explicit ControlMappingScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {}
explicit ControlMappingScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
categoryToggles_[0] = true;
categoryToggles_[1] = true;
}
const char *tag() const override { return "ControlMapping"; }
protected:
@@ -51,6 +54,8 @@ private:
UI::ScrollView *rightScroll_ = nullptr;
std::vector<SingleControlMapper *> mappers_;
int keyMapGeneration_ = -1;
bool categoryToggles_[10]{};
};
class KeyMappingNewKeyDialog : public PopupScreen {