src: Move control to input directory

This commit is contained in:
GPUCode 2024-04-14 00:41:51 +03:00
parent 5e2ac6c72b
commit 0a94899c86
5 changed files with 24 additions and 19 deletions

View file

@ -2,14 +2,14 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <fmt/core.h>
#include <vulkan_util.h>
#include "Emulator/Host/controller.h"
#include "common/singleton.h"
#include "common/version.h"
#include "core/PS4/HLE/Graphics/graphics_render.h"
#include "core/PS4/HLE/Graphics/video_out.h"
#include "core/libraries/pad/pad.h"
#include "emulator.h"
#include "input/controller.h"
#include "vulkan_util.h"
namespace Emu {
@ -344,8 +344,7 @@ void keyboardEvent(SDL_Event* event) {
break;
}
if (button != 0) {
auto* controller =
Common::Singleton<Emulator::Host::Controller::GameController>::Instance();
auto* controller = Common::Singleton<Input::GameController>::Instance();
controller->checKButton(0, button, event->type == SDL_EVENT_KEY_DOWN);
}
}