mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-04-28 21:57:59 +03:00
Added support for multiple input device types for KeyMap and connected Qt.
This commit is contained in:
parent
4a94ec934a
commit
02fd19b2f6
12 changed files with 256 additions and 201 deletions
17
src/common/emu_window.cpp
Normal file
17
src/common/emu_window.cpp
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue