2014-09-09 10:16:02 +05:30
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 11:08:14 +05:30
|
|
|
// Licensed under GPLv2 or any later version
|
2014-09-09 10:16:02 +05:30
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "emu_window.h"
|
|
|
|
|
|
|
|
void EmuWindow::KeyPressed(KeyMap::HostDeviceKey key) {
|
2015-01-19 04:37:48 +05:30
|
|
|
Service::HID::PadState mapped_key = KeyMap::GetPadKey(key);
|
2014-09-09 10:16:02 +05:30
|
|
|
|
2015-01-19 04:37:48 +05:30
|
|
|
Service::HID::PadButtonPress(mapped_key);
|
2014-09-09 10:16:02 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
void EmuWindow::KeyReleased(KeyMap::HostDeviceKey key) {
|
2015-01-19 04:37:48 +05:30
|
|
|
Service::HID::PadState mapped_key = KeyMap::GetPadKey(key);
|
2014-09-09 10:16:02 +05:30
|
|
|
|
2015-01-19 04:37:48 +05:30
|
|
|
Service::HID::PadButtonRelease(mapped_key);
|
2014-09-09 10:16:02 +05:30
|
|
|
}
|