Qt: add customizable controller hotkeys (#3369)

* customizable controller hotkeys - initial

* Update input_handler.h
This commit is contained in:
rainmakerv2
2025-08-03 16:59:12 +08:00
committed by GitHub
parent a362f20dae
commit c7f1c66b82
15 changed files with 1067 additions and 15 deletions

View File

@@ -3,10 +3,12 @@
#pragma once
#include <string>
#include "common/types.h"
#include "core/libraries/pad/pad.h"
#include "input/controller.h"
#include "string"
#define SDL_EVENT_TOGGLE_FULLSCREEN (SDL_EVENT_USER + 1)
#define SDL_EVENT_TOGGLE_PAUSE (SDL_EVENT_USER + 2)
#define SDL_EVENT_CHANGE_CONTROLLER (SDL_EVENT_USER + 3)
@@ -98,6 +100,7 @@ private:
void OnResize();
void OnKeyboardMouseInput(const SDL_Event* event);
void OnGamepadEvent(const SDL_Event* event);
void CheckHotkeys();
private:
s32 width;
@@ -107,6 +110,7 @@ private:
SDL_Window* window{};
bool is_shown{};
bool is_open{true};
bool process_hotkeys{true};
};
} // namespace Frontend