SDL FLags - Constamt values

I use a programming language called QB64. A few days ago the guy who makes it gave it the ability to link to dll’s. It uses SDL allready so linking to it is not a problem. However in order to use the flags values for commands we need the hex constants attributed to them.

We have these so far.

Code:

CONST SDL_INIT_TIMER = &H1
CONST SDL_INIT_AUDIO = &H10
CONST SDL_INIT_VIDEO = &H20
CONST SDL_INIT_CDROM = &H100
CONST SDL_INIT_JOYSTICK = &H200
CONST SDL_INIT_NOPARACHUTE = &H100000 '/* Don’t catch fatal signals /
CONST SDL_INIT_EVENTTHREAD = &H1000000 '/
Not supported on all OS’s */
CONST SDL_INIT_EVERYTHING = &HFFFF

Does anyone know where i could find them/have them allready? I looked everywhere to no avail.

Thanks

John

Try looking in the headers of the SDL source package.On Sun, Dec 5, 2010 at 8:40 AM, Unseen Machine wrote:

I use a programming language called QB64. A few days ago the guy who
makes it gave it the ability to link to dll’s. It uses SDL allready so
linking to it is not a problem. However in order to use the flags values for
commands we need the hex constants attributed to them.

We have these so far.

Code:

CONST SDL_INIT_TIMER = &H1
CONST SDL_INIT_AUDIO = &H10
CONST SDL_INIT_VIDEO = &H20
CONST SDL_INIT_CDROM = &H100
CONST SDL_INIT_JOYSTICK = &H200
CONST SDL_INIT_NOPARACHUTE = &H100000 '/* Don’t catch fatal signals /
CONST SDL_INIT_EVENTTHREAD = &H1000000 '/
Not supported on all OS’s */
CONST SDL_INIT_EVERYTHING = &HFFFF

Does anyone know where i could find them/have them allready? I looked
everywhere to no avail.

Thanks

John


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Will do, i found the joystick ones allready. :smiley:

Where can i find the typedef’s though? They need to be converted to QB64 varibles types as we can’t use the actual types in the headers themeselves.

Thanks for the fast reply,

John

Try SDL_config_win32.h, or whatever OS you’re using. It’s in the include
directory.On Sun, Dec 5, 2010 at 10:33 AM, Unseen Machine wrote:

Will do, i found the joystick ones allready. [image: Very Happy]

Where can i find the typedef’s though? They need to be converted to QB64
varibles types as we can’t use the actual types in the headers themeselves.

Thanks for the fast reply,

John


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org