diff options
author | bunnei <bunneidev@gmail.com> | 2015-03-12 02:28:57 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-03-12 02:28:57 +0100 |
commit | ed5b275d21612906e6eeb4b1f344aa0f1eb31c10 (patch) | |
tree | 54ffc1fe7163996fdaed1cb5cd948015409dcac6 /src/citra_qt/bootmanager.cpp | |
parent | Merge pull request #629 from archshift/lcdfb (diff) | |
parent | hid_user: Removed unnecessary includes. (diff) | |
download | yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.tar yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.tar.gz yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.tar.bz2 yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.tar.lz yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.tar.xz yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.tar.zst yuzu-ed5b275d21612906e6eeb4b1f344aa0f1eb31c10.zip |
Diffstat (limited to 'src/citra_qt/bootmanager.cpp')
-rw-r--r-- | src/citra_qt/bootmanager.cpp | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index a040e75c1..b81bd6167 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -268,14 +268,33 @@ QByteArray GRenderWindow::saveGeometry() void GRenderWindow::keyPressEvent(QKeyEvent* event) { - EmuWindow::KeyPressed({event->key(), keyboard_id}); - Service::HID::PadUpdateComplete(); + this->KeyPressed({event->key(), keyboard_id}); } void GRenderWindow::keyReleaseEvent(QKeyEvent* event) { - EmuWindow::KeyReleased({event->key(), keyboard_id}); - Service::HID::PadUpdateComplete(); + this->KeyReleased({event->key(), keyboard_id}); +} + +void GRenderWindow::mousePressEvent(QMouseEvent *event) +{ + if (event->button() == Qt::LeftButton) + { + auto pos = event->pos(); + this->TouchPressed(static_cast<unsigned>(pos.x()), static_cast<unsigned>(pos.y())); + } +} + +void GRenderWindow::mouseMoveEvent(QMouseEvent *event) +{ + auto pos = event->pos(); + this->TouchMoved(static_cast<unsigned>(pos.x()), static_cast<unsigned>(pos.y())); +} + +void GRenderWindow::mouseReleaseEvent(QMouseEvent *event) +{ + if (event->button() == Qt::LeftButton) + this->TouchReleased(); } void GRenderWindow::ReloadSetKeymaps() |