mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DolphinQt: Fix mapping of space, return, and mouse-clicks from immediately re-activating detection.
This commit is contained in:
@ -6,12 +6,6 @@
|
||||
|
||||
#include <QEvent>
|
||||
|
||||
BlockUserInputFilter* BlockUserInputFilter::Instance()
|
||||
{
|
||||
static BlockUserInputFilter s_block_user_input_filter;
|
||||
return &s_block_user_input_filter;
|
||||
}
|
||||
|
||||
bool BlockUserInputFilter::eventFilter(QObject* object, QEvent* event)
|
||||
{
|
||||
const QEvent::Type event_type = event->type();
|
||||
|
@ -12,9 +12,8 @@ class BlockUserInputFilter : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static BlockUserInputFilter* Instance();
|
||||
using QObject::QObject;
|
||||
|
||||
private:
|
||||
BlockUserInputFilter() = default;
|
||||
bool eventFilter(QObject* object, QEvent* event) override;
|
||||
};
|
||||
|
Reference in New Issue
Block a user