core/frontend/emu_window: return true when TouchPressed is consumed

This commit is contained in:
SachinVin 2020-05-30 18:58:34 +05:30
parent 60235827c5
commit 666787bf4d
3 changed files with 6 additions and 4 deletions

View file

@ -115,8 +115,9 @@ public:
* Signal that a touch pressed event has occurred (e.g. mouse click pressed)
* @param framebuffer_x Framebuffer x-coordinate that was pressed
* @param framebuffer_y Framebuffer y-coordinate that was pressed
* @returns True if the coordinates are within the touchpad, otherwise false
*/
void TouchPressed(unsigned framebuffer_x, unsigned framebuffer_y);
bool TouchPressed(unsigned framebuffer_x, unsigned framebuffer_y);
/// Signal that a touch released event has occurred (e.g. mouse click released)
void TouchReleased();