mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-31 22:55:44 +00:00
DolphinQt: Fix mapping of space, return, and mouse-clicks from immediately re-activating detection.
This commit is contained in:
parent
d2d8d7ce90
commit
4e39d833ae
4 changed files with 17 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue