[SDL2]-"SDL_SetRelativeMouseMode"-How To Get X/Y V |
[SDL2]-"SDL_SetRelativeMouseMode"-How To Get X/Y V |
Jonas Kulla
Guest
|
https://wiki.libsdl.org/SDL_MouseMotionEvent
Quoting the wiki: "Relative motion is stored in xrel and yrel and is relative to the last motion event. If relative mouse mode is enabled with SDL_SetRelativeMouseMode(), then the mouse will give relative motion events even when the cursor reaches the edge of the screen." 2014-12-12 14:37 GMT+01:00 JeZ-l-Lee:
|
|||||||||||||
|
JeZ-l-Lee
|
Hi,
Thank you for your help. Will implement when I wake up. Been up all night working on this already... |
|||||||||||
|