Home
last modified time | relevance | path

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

/AliOS-Things-master/components/SDL2/src/joystick/alios/
A DSDL_sysjoystick.c165 int xrel, yrel; in AliOS_JoystickUpdate() local
166 adc_ret |= hal_adc_value_get(&roll_x, &xrel, 5); in AliOS_JoystickUpdate()
169 if (xrel || yrel) { in AliOS_JoystickUpdate()
170 if ((last_xrel == xrel) && (last_yrel == yrel)) in AliOS_JoystickUpdate()
172 SDL_PrivateJoystickBall(joystick, (Uint8) i, xrel, yrel); in AliOS_JoystickUpdate()
173 last_xrel = xrel; in AliOS_JoystickUpdate()
/AliOS-Things-master/components/SDL2/src/events/
A DSDL_mouse.c325 int xrel; local
367 xrel = x;
369 x = (mouse->last_x + xrel);
372 xrel = x - mouse->last_x;
378 xrel = 0;
381 } else if (!xrel && !yrel) { /* Drop events that don't change state */
390 xrel = 0;
399 mouse->x += xrel;
428 mouse->xdelta += xrel;
449 event.motion.xrel = xrel;
A DSDL_touch.c363 float xrel, yrel, prel; in SDL_SendTouchMotion() local
405 xrel = x - finger->x; in SDL_SendTouchMotion()
410 if (xrel == 0.0f && yrel == 0.0f && prel == 0.0f) { in SDL_SendTouchMotion()
431 event.tfinger.dx = xrel; in SDL_SendTouchMotion()
A DSDL_events.c215 (int) event->motion.xrel, (int) event->motion.yrel); in SDL_LogEvent()
245 (uint) event->jball.ball, (int) event->jball.xrel, (int) event->jball.yrel); in SDL_LogEvent()
/AliOS-Things-master/components/SDL2/test/
A Dtestrelative.c45 rect.x += event.motion.xrel; in loop()
A Dtestjoystick.c155 event.jball.ball, event.jball.xrel, event.jball.yrel); in loop()
/AliOS-Things-master/components/SDL2/src/joystick/
A DSDL_joystick_c.h103 Uint8 ball, Sint16 xrel, Sint16 yrel);
A DSDL_joystick.c1266 Sint16 xrel, Sint16 yrel) in SDL_PrivateJoystickBall() argument
1281 joystick->balls[ball].dx += xrel; in SDL_PrivateJoystickBall()
1292 event.jball.xrel = xrel; in SDL_PrivateJoystickBall()
/AliOS-Things-master/components/SDL2/include/
A DSDL_events.h264 Sint32 xrel; /**< The relative motion in the X direction */ member
327 Sint16 xrel; /**< The relative motion in the X direction */ member
/AliOS-Things-master/components/SDL2/src/joystick/linux/
A DSDL_sysjoystick.c1121 int xrel, yrel; in LINUX_JoystickUpdate() local
1123 xrel = joystick->hwdata->balls[i].axis[0]; in LINUX_JoystickUpdate()
1125 if (xrel || yrel) { in LINUX_JoystickUpdate()
1128 SDL_PrivateJoystickBall(joystick, (Uint8) i, xrel, yrel); in LINUX_JoystickUpdate()
/AliOS-Things-master/components/SDL2/src/render/
A DSDL_sysrender.h196 float xrel; member
A DSDL_render.c663 if (event->motion.xrel != 0 && renderer->relative_scaling) { in SDL_RendererEventWatch()
664 … float rel = renderer->xrel + event->motion.xrel / (scale.x * renderer->dpi_scale.x); in SDL_RendererEventWatch()
666 renderer->xrel = rel - trunc; in SDL_RendererEventWatch()
667 event->motion.xrel = (Sint32) trunc; in SDL_RendererEventWatch()
/AliOS-Things-master/components/SDL2/src/test/
A DSDL_test_common.c1343 event->motion.xrel, event->motion.yrel, in SDLTest_PrintEvent()
1370 event->jball.which, event->jball.ball, event->jball.xrel, in SDLTest_PrintEvent()
1888 …of(message), "(%i, %i), rel (%i, %i)\n", lastEvent.x, lastEvent.y, lastEvent.xrel, lastEvent.yrel); in SDLTest_CommonEvent()

Completed in 28 milliseconds