From b57f0f995c1df68044c9e1d3f8e017dd469333ff Mon Sep 17 00:00:00 2001 From: angie Date: Thu, 6 Jun 2024 19:24:24 -0400 Subject: [PATCH] Fix index --- ultramodern/src/input.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ultramodern/src/input.cpp b/ultramodern/src/input.cpp index b7391a2..ef34e5b 100644 --- a/ultramodern/src/input.cpp +++ b/ultramodern/src/input.cpp @@ -142,12 +142,12 @@ extern "C" void osContGetReadData(RDRAM_ARG PTR(OSContPad) data_) { } if (got_response) { - data[0].button = buttons; - data[0].stick_x = (int8_t)(127 * x); - data[0].stick_y = (int8_t)(127 * y); - data[0].err_no = 0; + data[controller].button = buttons; + data[controller].stick_x = (int8_t)(127 * x); + data[controller].stick_y = (int8_t)(127 * y); + data[controller].err_no = 0; } else { - data[controller].err_no = 0x80 >> 4; // errno: CONT_NO_RESPONSE_ERROR >> 4 + data[controller].err_no = CONT_NO_RESPONSE_ERROR; // CHNL_ERR_NORESP >> 4 } } }