Fixed compile errors on various platforms
This commit is contained in:
parent
5ea622c38f
commit
d5288a2098
4 changed files with 6 additions and 4 deletions
|
@ -197,7 +197,7 @@ extern "C"
|
|||
|
||||
/* Generate axis motion events */
|
||||
for (i = 0; i < joystick->naxes; ++i) {
|
||||
change = ((int32) axes[i] - joystick->axes[i]);
|
||||
change = ((int32) axes[i] - joystick->axes[i].value);
|
||||
if ((change > JITTER) || (change < -JITTER)) {
|
||||
SDL_PrivateJoystickAxis(joystick, i, axes[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue