1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Mouse Lock to Window

Discussion in 'Suggestions & Ideas' started by blackarm, Nov 15, 2013.

Mods: Rainbows
  1. blackarm

    blackarm Catapult Fodder

    Messages:
    1
    I have a really bad habit of moving my mouse outside of the window (in windowed mode, obviously) when I get into it and accidentally clicking outside of a window, and focusing another, is detrimental to me.

    I'm suggesting an option to enable (off by default?) locking the mouse inside the bounds of the window.
    This should be trivial (I'm hoping, of course nothing ever is) in SDL, as from what I've read it handles it for you, even if you're locked at a framerate with a monitor at a higher frequency; see: SDL_WM_GrabInput( SDL_GRAB_ON );

    source: http://sdl.beuc.net/sdl.wiki/SDL_WM_GrabInput
     
    Sinleet likes this.
  2. Auburn

    Auburn Prepare Yourself! Forum Moderator Staff Alumni Donator Tester
    1. SharSharShar - [SHARK]

    Messages:
    734
    hmmm, I haven't noticed this issue, but then again, I primarily play knight and builder, so my cursor never goes more than a few blocks from me.
     
Mods: Rainbows