Home
last modified time | relevance | path

Searched refs:gameport (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/components/SDL2/src/joystick/bsd/
A DSDL_sysjoystick.c547 struct joystick gameport; local
551 while (read(joy->hwdata->fd, &gameport, sizeof gameport) == sizeof gameport) {
552 if (abs(x - gameport.x) > 8) {
553 x = gameport.x;
569 if (abs(y - gameport.y) > 8) {
570 y = gameport.y;
586 SDL_PrivateJoystickButton(joy, 0, gameport.b1);
587 SDL_PrivateJoystickButton(joy, 1, gameport.b2);

Completed in 7 milliseconds