rpcsx/rpcs3/rpcs3qt/osk_dialog_frame.h
Megamouse 3183d73e4d OSK/overlays: fix initial input interception
Don't use default interception if we already intercept with custom params.
2022-04-26 00:51:38 +02:00

28 lines
661 B
C++

#pragma once
#include "util/types.hpp"
#include "Emu/Cell/Modules/cellOskDialog.h"
#include <QObject>
#include <string>
class custom_dialog;
class osk_dialog_frame : public QObject, public OskDialogBase
{
Q_OBJECT
public:
osk_dialog_frame() = default;
~osk_dialog_frame();
void Create(const std::string& title, const std::u16string& message, char16_t* init_text, u32 charlimit, u32 prohibit_flags, u32 panel_flag, u32 first_view_panel, color base_color, bool dimmer_enabled, bool intercept_input) override;
void Close(s32 status) override;
private:
void SetOskText(const QString& text);
custom_dialog* m_dialog = nullptr;
QString m_text_old;
};