mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-02 21:12:44 +01:00
18 lines
460 B
C++
18 lines
460 B
C++
|
// 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);
|
||
|
}
|