mirror of
https://github.com/okalachev/flix.git
synced 2025-07-29 04:19:00 +00:00
Minor fix in joystick support for simulation
Don't use channels variable as it breaks code isolation
This commit is contained in:
parent
fafe630e4c
commit
67e4a95697
@ -49,7 +49,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user