mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 05:47:56 -05:00
Added support for multiple input device types for KeyMap and connected Qt.
This commit is contained in:
17
src/common/emu_window.cpp
Normal file
17
src/common/emu_window.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright 2014 Citra Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "emu_window.h"
|
||||
|
||||
void EmuWindow::KeyPressed(KeyMap::HostDeviceKey key) {
|
||||
HID_User::PadState mapped_key = KeyMap::GetPadKey(key);
|
||||
|
||||
HID_User::PadButtonPress(mapped_key);
|
||||
}
|
||||
|
||||
void EmuWindow::KeyReleased(KeyMap::HostDeviceKey key) {
|
||||
HID_User::PadState mapped_key = KeyMap::GetPadKey(key);
|
||||
|
||||
HID_User::PadButtonRelease(mapped_key);
|
||||
}
|
Reference in New Issue
Block a user