aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/emu_window.cpp
blob: 7a2c50ac8369b33c237a49db7c5a1c25d81ecde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}