mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-03 12:49:38 +00:00
17 lines
497 B
C++
17 lines
497 B
C++
// Copyright 2014 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "emu_window.h"
|
|
|
|
void EmuWindow::KeyPressed(KeyMap::HostDeviceKey key) {
|
|
Service::HID::PadState mapped_key = KeyMap::GetPadKey(key);
|
|
|
|
Service::HID::PadButtonPress(mapped_key);
|
|
}
|
|
|
|
void EmuWindow::KeyReleased(KeyMap::HostDeviceKey key) {
|
|
Service::HID::PadState mapped_key = KeyMap::GetPadKey(key);
|
|
|
|
Service::HID::PadButtonRelease(mapped_key);
|
|
}
|