1
0
Fork 0
forked from suyu/suyu

Merge pull request #658 from Subv/ref_temporary

EmuWindow: Fixed a reference to a temporary variable
This commit is contained in:
Tony Wasserka 2015-03-14 21:08:35 +01:00
commit fdd9fed47e

View file

@ -110,7 +110,7 @@ public:
* @return std::tuple of (x, y, pressed) where `x` and `y` are the touch coordinates and * @return std::tuple of (x, y, pressed) where `x` and `y` are the touch coordinates and
* `pressed` is true if the touch screen is currently being pressed * `pressed` is true if the touch screen is currently being pressed
*/ */
const std::tuple<u16, u16, bool>& GetTouchState() const { const std::tuple<u16, u16, bool> GetTouchState() const {
return std::make_tuple(touch_x, touch_y, touch_pressed); return std::make_tuple(touch_x, touch_y, touch_pressed);
} }