SDL_GetRelativeMouseState() problem

I’m using SDL_GetRelativeMouseState() to get the mouse coord deltas to
use in a 1st person 3D game. But I’m having a problem dealing with the
possibility that the mouse won’t be over the window when the game
starts. When the mouse is moved over the window the mouse deltas are
whatever the mouse coords of the first place the cursor enters the
window. In other words, BIG.

How can I get around that problem? And is this a “feature” or a bug?

Brad wrote:

I’m using SDL_GetRelativeMouseState() to get the mouse coord deltas to
use in a 1st person 3D game. But I’m having a problem dealing with the
possibility that the mouse won’t be over the window when the game
starts. When the mouse is moved over the window the mouse deltas are
whatever the mouse coords of the first place the cursor enters the
window. In other words, BIG.

How can I get around that problem? And is this a “feature” or a bug?

try grabbing the mouse input for your window. thats usually what you
want in a FPS anyway.

Hi

I’m trying to compile sdl with dev-c++ under windows, but there are just too
many errors in the source code (this as variable name, illegal conversions,
…). Did anybody accomplish to compile it and could send me the lib und
dll?

thx
Milo

Nachrichthey Milo,
back when i was using dev-c++ i just used the binaries (you can download pre-compiled SDL dll’s for windows on the site…forget where but it should be same place you DL’d the source).----- Original Message -----
From: Milo Spirig
To: sdl at libsdl.org
Sent: Wednesday, March 19, 2003 11:33 AM
Subject: [SDL] compiling sdl with dev-c++

Hi

I’m trying to compile sdl with dev-c++ under windows, but there are just too many errors in the source code (this as variable name, illegal conversions, …). Did anybody accomplish to compile it and could send me the lib und dll?

thx
Milo

The problem is that I also need a dev-c++ library file (*.a) to link with
the dll.

-----Urspr?ngliche Nachricht-----Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im Auftrag von Atrix
Wolfe
Gesendet: Mittwoch, 19. M?rz 2003 20:48
An: sdl at libsdl.org
Betreff: Re: [SDL] compiling sdl with dev-c++

hey Milo,
back when i was using dev-c++ i just used the binaries (you can download
pre-compiled SDL dll’s for windows on the site…forget where but it should
be same place you DL’d the source).

----- Original Message -----
From: Milo Spirig mailto:Milo_Spirig
To: sdl at libsdl.org
Sent: Wednesday, March 19, 2003 11:33 AM
Subject: [SDL] compiling sdl with dev-c++

Hi

I’m trying to compile sdl with dev-c++ under windows, but there are just too
many errors in the source code (this as variable name, illegal conversions,
…). Did anybody accomplish to compile it and could send me the lib und
dll?

thx
Milo

starts. When the mouse is moved over the window the mouse deltas are
whatever the mouse coords of the first place the cursor enters the
window. In other words, BIG.

How can I get around that problem? And is this a “feature” or a bug?

Throw away the first mouse motion event you get?

Set the video mode, explicitly warp the cursor and empty the event queue?

–ryan.

Hi, I am using Dev-Cpp for a linux -> Win32 conversion project. I never
had to pick with the \lib-files like that. I just know that the compiler
though is very picky about having all variables at the beginning of a
function and in main().

Hope that sorted out something for you.
/Patrich
ons 2003-03-19 klockan 21.24 skrev Milo Spirig:> The problem is that I also need a dev-c++ library file (*.a) to link

with the dll.
-----Urspr?ngliche Nachricht-----
Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im
Auftrag von Atrix Wolfe
Gesendet: Mittwoch, 19. M?rz 2003 20:48
An: sdl at libsdl.org
Betreff: Re: [SDL] compiling sdl with dev-c++

    hey Milo,
      back when i was using dev-c++ i just used the binaries (you
    can download pre-compiled SDL dll's for windows on the
    site...forget where but it should be same place you DL'd the
    source).
            ----- Original Message ----- 
            From: Milo Spirig
            To: sdl at libsdl.org
            Sent: Wednesday, March 19, 2003 11:33 AM
            Subject: [SDL] compiling sdl with dev-c++
            
            Hi
             
            I'm trying to compile sdl with dev-c++ under windows,
            but there are just too many errors in the source code
            (this as variable name, illegal conversions, ...). Did
            anybody accomplish to compile it and could send me the
            lib und dll?
             
            thx
            Milo


Patrich Bj?rklund <@Patrich_Bjorklund>
Home Factory

Also, be sure your command-line has the -I and -l parameters correct. I
remember having some issues when I first started out and I think using
sld-config s output on the commandline fixed it, though I could be
thinking of something else.> ----- Original Message -----

From: patrich@as8-6-1.pe.g.bonet.se (Patrich Bjorklund)
To: “SDL - maillist”
Sent: Wednesday, March 19, 2003 11:45 PM
Subject: Re: AW: [SDL] compiling sdl with dev-c++

Hi, I am using Dev-Cpp for a linux -> Win32 conversion project. I never
had to pick with the \lib-files like that. I just know that the compiler
though is very picky about having all variables at the beginning of a
function and in main().

Hope that sorted out something for you.
/Patrich
ons 2003-03-19 klockan 21.24 skrev Milo Spirig:

The problem is that I also need a dev-c++ library file (*.a) to link
with the dll.
-----Urspr?ngliche Nachricht-----
Von: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org] Im
Auftrag von Atrix Wolfe
Gesendet: Mittwoch, 19. M?rz 2003 20:48
An: sdl at libsdl.org
Betreff: Re: [SDL] compiling sdl with dev-c++

    hey Milo,
      back when i was using dev-c++ i just used the binaries (you
    can download pre-compiled SDL dll's for windows on the
    site...forget where but it should be same place you DL'd the
    source).
            ----- Original Message -----
            From: Milo Spirig
            To: sdl at libsdl.org
            Sent: Wednesday, March 19, 2003 11:33 AM
            Subject: [SDL] compiling sdl with dev-c++

            Hi

            I'm trying to compile sdl with dev-c++ under windows,
            but there are just too many errors in the source code
            (this as variable name, illegal conversions, ...). Did
            anybody accomplish to compile it and could send me the
            lib und dll?

            thx
            Milo


Patrich Bj?rklund
Home Factory


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl