Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed linux directions being inverted.

  • Loading branch information
bobbens committed Jul 7, 2008
1 parent aec0052 commit f9a570154e08d65f7c1803104befdcb1b760a35a

File 2 of 2 in f9a5701

@@ -341,7 +341,8 @@ SDL_SYS_ToDirection( SDL_HapticDirection * dir )

switch (dir->type) {
case SDL_HAPTIC_POLAR:
tmp = ((dir->dir[0] % 36000) * 0xFFFF) / 36000;
/* Linux directions are inverted. */
tmp = (((18000 + dir->dir[0]) % 36000) * 0xFFFF) / 36000;
return (Uint16) tmp;
break;
case SDL_HAPTIC_CARTESIAN:

0 comments on commit f9a5701

Please sign in to comment.