mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-01-31 00:55:19 +01:00
* Logic update, no QT ui * Fixing errors * Gui boxes * fixes * prevent device list refreshing too fast when game not running * Removed duplicate Socket declarations in kernel/file_system.cpp and fs.h * Fixed clang-format and micDevice errors * Ran clang-format and fixed rebase compiler issues * Settings dialog fix * Addressed squidbus' concerns * Update config.cpp to adhere to clang-format * Removed a space causing clang-format to complain * Addressed squidbus' concerns and added fallbacks Concerns: - Changed dev_name construct to remove unnecessary cast - Added an invalid AudioDeviceID macro to replace magic number --------- Co-authored-by: rainmakerv2 <30595646+rainmakerv3@users.noreply.github.com>
27 lines
605 B
C++
27 lines
605 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
#include <QObject>
|
|
#include <SDL3/SDL_events.h>
|
|
|
|
namespace SdlEventWrapper {
|
|
|
|
class Wrapper : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Wrapper(QObject* parent = nullptr);
|
|
~Wrapper();
|
|
bool ProcessEvent(SDL_Event* event);
|
|
static Wrapper* GetInstance();
|
|
static bool wrapperActive;
|
|
static Wrapper* WrapperInstance;
|
|
|
|
signals:
|
|
void SDLEvent(int Type, int Input, int Value);
|
|
void audioDeviceChanged(bool isAdd);
|
|
};
|
|
|
|
} // namespace SdlEventWrapper
|