Searched refs:xrel (Results 1 – 13 of 13) sorted by relevance
/AliOS-Things-master/components/SDL2/src/joystick/alios/ |
A D | SDL_sysjoystick.c | 165 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 D | SDL_mouse.c | 325 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 D | SDL_touch.c | 363 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 D | SDL_events.c | 215 (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 D | testrelative.c | 45 rect.x += event.motion.xrel; in loop()
|
A D | testjoystick.c | 155 event.jball.ball, event.jball.xrel, event.jball.yrel); in loop()
|
/AliOS-Things-master/components/SDL2/src/joystick/ |
A D | SDL_joystick_c.h | 103 Uint8 ball, Sint16 xrel, Sint16 yrel);
|
A D | SDL_joystick.c | 1266 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 D | SDL_events.h | 264 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 D | SDL_sysjoystick.c | 1121 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 D | SDL_sysrender.h | 196 float xrel; member
|
A D | SDL_render.c | 663 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 D | SDL_test_common.c | 1343 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