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:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user