Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

emulated_console: Amend cast in SetTouch()

Lioncash1c9f02790c4e
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp
index a896a5ad86..30c2e9d170 100644
--- a/src/core/hid/emulated_console.cpp
+++ b/src/core/hid/emulated_console.cpp
@@ -199,7 +199,7 @@ void EmulatedConsole::SetTouch(const Common::Input::CallbackStatus& callback, st
if (is_new_input) {
touch_value.pressed.value = true;
- touch_value.id = static_cast<u32>(index);
+ touch_value.id = static_cast<int>(index);
}
touch_value.x = touch_input.x;