CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/UI/CustomButtonMappingScreen.h
Views: 1401
// Copyright (c) 2013- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#pragma once1819#include "MiscScreens.h"20#include "UI/GamepadEmu.h"2122namespace UI {23class CheckBox;24}2526class CustomButtonMappingScreen : public UIDialogScreenWithGameBackground {27public:28CustomButtonMappingScreen(const Path &gamePath, int id) : UIDialogScreenWithGameBackground(gamePath), id_(id) {}2930const char *tag() const override { return "CustomButton"; }3132void CreateViews() override;33void onFinish(DialogResult result) override;3435protected:36void dialogFinished(const Screen *dialog, DialogResult result) override;3738private:39void saveArray();4041bool array[ARRAY_SIZE(CustomKeyData::customKeyList)]{};42int id_;43UI::ScrollView *rightScroll_ = nullptr;4445class ChoiceEventHandler{46public:47ChoiceEventHandler(UI::CheckBox *checkbox) : checkbox_(checkbox) {}48UI::EventReturn onChoiceClick(UI::EventParams &e);49private:50UI::CheckBox *checkbox_;51};52};535455