summaryrefslogtreecommitdiffstats
path: root/src/common/emu_window.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-03-08 08:13:26 +0100
committerbunnei <bunneidev@gmail.com>2015-03-10 23:05:17 +0100
commit543232436fae8d1d0f9fdd94baf0ca88d4eea067 (patch)
tree8104a34a4d34fe42a3054967677b13667670a540 /src/common/emu_window.h
parentHID: Added functions to emulate the touchpad. (diff)
downloadyuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.tar
yuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.tar.gz
yuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.tar.bz2
yuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.tar.lz
yuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.tar.xz
yuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.tar.zst
yuzu-543232436fae8d1d0f9fdd94baf0ca88d4eea067.zip
Diffstat (limited to '')
-rw-r--r--src/common/emu_window.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h
index f6099fdb6..df81e9e0f 100644
--- a/src/common/emu_window.h
+++ b/src/common/emu_window.h
@@ -77,6 +77,33 @@ public:
static void KeyReleased(KeyMap::HostDeviceKey key);
/**
+ * Signal that a touch pressed event has occurred (e.g. mouse click pressed)
+ * @param layout FramebufferLayout object describing the framebuffer size and screen positions
+ * @param framebuffer_x Framebuffer x-coordinate that was pressed
+ * @param framebuffer_y Framebuffer y-coordinate that was pressed
+ */
+ static void TouchPressed(const FramebufferLayout& layout, unsigned framebuffer_x,
+ unsigned framebuffer_y);
+
+ /**
+ * Signal that a touch released event has occurred (e.g. mouse click released)
+ * @param layout FramebufferLayout object describing the framebuffer size and screen positions
+ * @param framebuffer_x Framebuffer x-coordinate that was released
+ * @param framebuffer_y Framebuffer y-coordinate that was released
+ */
+ static void TouchReleased(const FramebufferLayout& layout, unsigned framebuffer_x,
+ unsigned framebuffer_y);
+
+ /**
+ * Signal that a touch movement event has occurred (e.g. mouse was moved over the emu window)
+ * @param layout FramebufferLayout object describing the framebuffer size and screen positions
+ * @param framebuffer_x Framebuffer x-coordinate
+ * @param framebuffer_y Framebuffer y-coordinate
+ */
+ static void TouchMoved(const FramebufferLayout& layout, unsigned framebuffer_x,
+ unsigned framebuffer_y);
+
+ /**
* Returns currently active configuration.
* @note Accesses to the returned object need not be consistent because it may be modified in another thread
*/
@@ -168,4 +195,6 @@ private:
WindowConfig config; ///< Internal configuration (changes pending for being applied in ProcessConfigurationChanges)
WindowConfig active_config; ///< Internal active configuration
+
+ static bool touch_pressed; ///< True if touchpad area is currently pressed, otherwise false
};