Minor fix in joystick support for simulation

Don't use channels variable as it breaks code isolation
This commit is contained in:
Oleg Kalachev 2025-02-15 03:29:09 +03:00
parent f2171f2db4
commit 641e711e67

View File

@ -29,7 +29,7 @@ bool joystickInit() {
bool joystickGet(int16_t ch[16]) {
SDL_JoystickUpdate();
for (uint8_t i = 0; i < sizeof(channels) / sizeof(channels[0]); i++) {
for (uint8_t i = 0; i < 16; i++) {
ch[i] = SDL_JoystickGetAxis(joystick, i);
}
return true;