2014-09-09 06:46:02 +02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 06:38:14 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-09-09 06:46:02 +02:00
|
|
|
// 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);
|
|
|
|
}
|