1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 08:34:32 +02:00

fix Switch multi-touch by using new libnx

This commit is contained in:
XProger
2019-04-09 01:51:30 +03:00
parent fff25ba9be
commit 3f698b3f27

View File

@@ -270,7 +270,7 @@ void touchUpdate() {
touchPosition touch;
hidTouchRead(&touch, i);
InputKey key = Input::getTouch(i /*touch.id*/); // require libnx with https://github.com/switchbrew/libnx/pull/228
InputKey key = Input::getTouch(touch.id);
if (key == ikNone) continue;
Input::setPos(key, vec2(float(touch.px), float(touch.py)));