I get the following error while trying to init stuff… I just installed
DirectX … why would I get this error?
It’s not like I need a joystick connected to make this work or anything,
right?

Couldn’t initialize SDL: DirectInputCreate: Your version of DirectInput
needs up
grading

any idea why??

slim

I get the following error while trying to init stuff… I just installed
DirectX … why would I get this error?
It’s not like I need a joystick connected to make this work or anything,
right?

Couldn’t initialize SDL: DirectInputCreate: Your version of DirectInput
needs up
grading

any idea why??

No idea. I just upgraded to DirectX 8, and I haven’t had any problems.
Do you have any special hardware?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I had this problem after installing dx8.

After deleting dinput*.dll in windows/system, it works fine (!)
You’d problably want to make a backup first.

Another thing is that sdl will not build against dx8 (using mingw32)
if you don’t change the last part of directx.h (in src/video/windx5) to:

#ifdef GNUC
#define NONAMELESSUNION
#endif
#define DIRECTINPUT_VERSION 0x0700 // !! New.
#define DIRECTSOUND_VERSION 0x0700 // !! New.
#define DIRECTDRAW_VERSION 0x0700 // !! New.
#include <ddraw.h>
#include <dsound.h>
#include <dinput.h>
#endif /* _directx_h */

maybe someone should could change this (if it’s not alredy done).—
albin.

At 14:47 2000-12-12 -0500, you wrote:
I get the following error while trying to init stuff… I just installed
DirectX … why would I get this error?
It’s not like I need a joystick connected to make this work or anything,
right?

Couldn’t initialize SDL: DirectInputCreate: Your version of DirectInput
needs up
grading

any idea why??

slim

I had this problem after installing dx8.

After deleting dinput*.dll in windows/system, it works fine (!)
You’d problably want to make a backup first.

Well, but if you do that you probably lose all keyboard input from the user,
no?

Another thing is that sdl will not build against dx8 (using mingw32)
if you don’t change the last part of directx.h (in src/video/windx5) to:

I actually did that for the windows version to workaround the problem I had
above
(instead of deleting the dlls in the systems directory)… the problem,
though,
is that after doing so I get enormous scancodes on key presses… anybody
had similar results?

I think the problem is that there is a new dinput8.dll (intentionally named
differently
from dinput.dll since it’s not compatible) that MS has provided
and the function prototypes actually are slightly different (i.e. it’ll not
be backward-compatible)

so the directX’s own header defines all the
versions of the DIRECTX_VERSION to be 0x800 when the old Dinput.dll
is NOT of version 8.0 but 7.0a or something. Since SDL still loads
Dinput.dll instead of Dinpu8.dll the error is reported. That’s where the
problem
arises… I think…

so perhaps the way to truly fix this is to added a ifdef in SDL where it
loads Dinput.dll and if you’re using DX8, load Dinpu8.dll instead and call
GetProcAddress on the new DirectInput8Create (I don’t know the real name
of the function, so don’t quote me) with the new set of arguments.

slim

I had this problem after installing dx8.

Another thing is that sdl will not build against dx8 (using mingw32)
if you don’t change the last part of directx.h (in src/video/windx5) to:

Thanks, this is fixed in the latest CVS.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

To compile sdl with mingw (+directx) i had to add:

#ifndef CDS_FULLSCREEN
#define CDS_FULLSCREEN 4
#endif

somewhere at the begining of SDL_dx5video.c.-----
albin

To compile sdl with mingw (+directx) i had to add:

#ifndef CDS_FULLSCREEN
#define CDS_FULLSCREEN 4
#endif

somewhere at the begining of SDL_dx5video.c.

Thanks, this is now in CVS. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

unsubscribe sdl

http://www.libsdl.org/mailing-list.html

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.

(p.s. while I’m here - at one stage I thought I’d update to the newst cvs
version of sdl to see if the problem went away. But I had no joy logging in
to the cvs server. the instructions to access the cvs version on libsdl.org
say
"# Hit when prompted for a password"
^-- ? what
I’ve tried typing return, space and even guest (as it used to be when
hosted at loki) for the password, but couldn’t login? In the end I downloaded
the > tar file version.)
CVSROOT=:pserver:guest at libsdl.org:/home/slouken/libsdl.org/cvs cvs login

This is what happens to me every time I try :

cvs -d :pserver:guest at libsdl.org:/home/slouken/libsdl.org/cvs login
(Logging in to guest at libsdl.org)
CVS password:
cvs [login aborted]: recv() from server libsdl.org: Connection reset by
peer

It looks like I last updated the cvs version back on august 28 - it
must have worked then…