2013-10-19 22:40:52 -04:00
|
|
|
// Copyright (c) 2013- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-10-04 23:24:14 +02:00
|
|
|
#include "Common/Render/TextureAtlas.h"
|
2013-10-19 22:40:52 -04:00
|
|
|
#include "MiscScreens.h"
|
2013-10-20 00:12:55 -04:00
|
|
|
|
2013-10-27 10:57:25 +05:30
|
|
|
namespace UI {
|
|
|
|
class CheckBox;
|
|
|
|
}
|
|
|
|
|
2018-06-16 23:11:56 -07:00
|
|
|
struct TouchButtonToggle {
|
|
|
|
const char *key;
|
|
|
|
bool *show;
|
2020-02-29 21:51:14 +01:00
|
|
|
ImageID img;
|
2021-03-04 10:37:35 +01:00
|
|
|
std::function<UI::EventReturn(UI::EventParams&)> handle;
|
2018-06-16 23:11:56 -07:00
|
|
|
};
|
|
|
|
|
2013-10-25 13:19:08 +02:00
|
|
|
class TouchControlVisibilityScreen : public UIDialogScreenWithBackground {
|
2013-10-19 22:40:52 -04:00
|
|
|
public:
|
2017-12-03 17:49:49 -08:00
|
|
|
void CreateViews() override;
|
|
|
|
void onFinish(DialogResult result) override;
|
2013-10-19 22:40:52 -04:00
|
|
|
|
|
|
|
protected:
|
2017-12-03 17:49:49 -08:00
|
|
|
UI::EventReturn OnToggleAll(UI::EventParams &e);
|
2013-10-19 22:40:52 -04:00
|
|
|
|
|
|
|
private:
|
2018-06-16 23:11:56 -07:00
|
|
|
std::vector<TouchButtonToggle> toggles_;
|
|
|
|
bool nextToggleAll_ = true;
|
2013-10-19 23:14:51 -04:00
|
|
|
};
|
2019-11-13 18:55:18 +01:00
|
|
|
|
|
|
|
class RightAnalogMappingScreen : public UIDialogScreenWithBackground {
|
|
|
|
public:
|
|
|
|
void CreateViews() override;
|
|
|
|
};
|