Added support for multiple input device types for KeyMap and connected Qt.

This commit is contained in:
Kevin Hartman 2014-09-08 21:46:02 -07:00
parent 4a94ec934a
commit 02fd19b2f6
12 changed files with 256 additions and 201 deletions

17
src/common/emu_window.cpp Normal file
View file

@ -0,0 +1,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);
}