summaryrefslogblamecommitdiffstats
path: root/src/common/emu_window.cpp
blob: 48bb35db5deee557483037e34caefa53af9e5e37 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                        
                                            




                                                       
                                                               
 
                                             


                                                        
                                                               
 
                                               
 
// 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) {
    Service::HID::PadState mapped_key = KeyMap::GetPadKey(key);

    Service::HID::PadButtonPress(mapped_key);
}

void EmuWindow::KeyReleased(KeyMap::HostDeviceKey key) {
    Service::HID::PadState mapped_key = KeyMap::GetPadKey(key);

    Service::HID::PadButtonRelease(mapped_key);
}