mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 01:29:33 +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
f2171f2db4
commit
641e711e67
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user