emu_window.cpp 481 B

1234567891011121314151617
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "emu_window.h"
  5. void EmuWindow::KeyPressed(KeyMap::HostDeviceKey key) {
  6. HID_User::PadState mapped_key = KeyMap::GetPadKey(key);
  7. HID_User::PadButtonPress(mapped_key);
  8. }
  9. void EmuWindow::KeyReleased(KeyMap::HostDeviceKey key) {
  10. HID_User::PadState mapped_key = KeyMap::GetPadKey(key);
  11. HID_User::PadButtonRelease(mapped_key);
  12. }