summaryrefslogblamecommitdiffstats
path: root/src/common/emu_window.cpp
blob: 4ec7b263a7a3841c83199f463782170bf7ca2a75 (plain) (tree)
1
2
                                        
                                            














                                                           
// 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) {
    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);
}