[semi-OT] mouse capture

In several (all?) of Loki’s games, you can use a keystroke (ctrl-g I
think) to lock the mouse into the game window. I don’t recall seeing
this feature in SDL, did I miss it? If it’s not there, how do you do
it?

				-fjr-- 

Frank J. Ramsay
@Frank_Ramsay

In several (all?) of Loki’s games, you can use a keystroke (ctrl-g I
think) to lock the mouse into the game window. I don’t recall seeing
this feature in SDL, did I miss it? If it’s not there, how do you do
it?

SDL_WM_GrabInput()

:slight_smile:
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec