mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Polish the new workaround, seems to be nice and simple.
This commit is contained in:
1 parent
a0b904c7e8
commit
45304476e2
2 files changed
+77
-2
No files matched your search
@@ -70,6 +70,29 @@ private:
|
||||
bool mapped_; // Prevent double registrations
|
||||
};
|
||||
|
||||
class KeyMappingNewMouseKeyDialog : public PopupScreen {
|
||||
public:
|
||||
explicit KeyMappingNewMouseKeyDialog(int btn, bool replace, std::function<void(KeyDef)> callback)
|
||||
: PopupScreen("Map Mouse", "", ""), callback_(callback), mapped_(false) {
|
||||
pspBtn_ = btn;
|
||||
}
|
||||
|
||||
virtual bool key(const KeyInput &key) override;
|
||||
virtual bool axis(const AxisInput &axis) override;
|
||||
|
||||
protected:
|
||||
void CreatePopupContents(UI::ViewGroup *parent) override;
|
||||
|
||||
virtual bool FillVertical() const override { return false; }
|
||||
virtual bool ShowButtons() const override { return true; }
|
||||
virtual void OnCompleted(DialogResult result) override {}
|
||||
|
||||
private:
|
||||
int pspBtn_;
|
||||
std::function<void(KeyDef)> callback_;
|
||||
bool mapped_; // Prevent double registrations
|
||||
};
|
||||
|
||||
class AnalogTestScreen : public UIDialogScreenWithBackground {
|
||||
public:
|
||||
AnalogTestScreen() {}
|
||||
|
||||
Reference in new issue
Block a user