Removed Joystick trackball support.

This commit is contained in:
EliteMasterEric
2023-05-11 20:22:27 -04:00
parent 2b3fe0ac0d
commit a7b83cb688
10 changed files with 3 additions and 82 deletions

View File

@@ -474,20 +474,6 @@ namespace lime {
}
break;
case SDL_JOYBALLMOTION:
if (!SDLJoystick::IsAccelerometer (event->jball.which)) {
joystickEvent.type = JOYSTICK_TRACKBALL_MOVE;
joystickEvent.index = event->jball.ball;
joystickEvent.x = event->jball.xrel / (event->jball.xrel > 0 ? 32767.0 : 32768.0);
joystickEvent.y = event->jball.yrel / (event->jball.yrel > 0 ? 32767.0 : 32768.0);
joystickEvent.id = event->jball.which;
JoystickEvent::Dispatch (&joystickEvent);
}
break;
case SDL_JOYBUTTONDOWN:

View File

@@ -117,11 +117,4 @@ namespace lime {
}
int Joystick::GetNumTrackballs (int id) {
return SDL_JoystickNumBalls (joysticks[id]);
}
}