RISC OS: mouse stops working after the pointer touches the bottom of the screen
Author: adyoullCreated Sep 29, 2026Updated Sep 29, 2026
After the pointer touches the bottom row of the screen, the window loses mouse focus and never gets it back:
SDL_GetMouseFocus()stays NULL;- motion and button events come through with windowID 0, even after moving back to the middle of the screen.
Programs that check the window ID, or use the renderer's logical size, stop responding to the mouse. In an EX0 EY0 mode I've seen the same at the right-hand side.
To reproduce
- Run a full screen SDL program that prints
SDL_GetMouseFocus()and the windowID of mouse events. - Move the pointer around. The focus is the window.
- Move it to the very bottom of the screen, then back up.
- The focus is now NULL, and events have windowID 0 from then on.
Source: libsdl-org/SDL