Let HID service choose between InputCommon and EmuWindow for input
This commit is contained in:
parent
eeb785c9ff
commit
ecb059daa9
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,8 @@
|
|||
|
||||
#include "video_core/video_core.h"
|
||||
|
||||
#include "input_common/input_common.h"
|
||||
|
||||
namespace Service {
|
||||
namespace HID {
|
||||
|
||||
|
@ -49,7 +51,7 @@ static u32 next_touch_index;
|
|||
|
||||
void Update() {
|
||||
SharedMem* mem = reinterpret_cast<SharedMem*>(shared_mem->GetPointer());
|
||||
const PadState state = VideoCore::g_emu_window->GetPadState();
|
||||
const PadState state = (InputCommon::g_user_input == nullptr) ? VideoCore::g_emu_window->GetPadState() : InputCommon::g_user_input->GetPadState();
|
||||
|
||||
if (mem == nullptr) {
|
||||
LOG_DEBUG(Service_HID, "Cannot update HID prior to mapping shared memory!");
|
||||
|
|
Loading…
Reference in a new issue