# SDL FLags - Constamt values

**URL:** <https://discourse.libsdl.org/t/sdl-flags-constamt-values/17766>\
**Category:** SDL Development\
**Created:** [December 5, 2010, 1:40pm UTC](https://discourse.libsdl.org/t/sdl-flags-constamt-values/17766 "2010-12-05T13:40:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unseen\_Machine](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/59ef9b/32.png) [@Unseen\_Machine](https://discourse.libsdl.org/u/Unseen_Machine)\
**Post date:** [December 5, 2010, 1:40pm UTC](https://discourse.libsdl.org/t/sdl-flags-constamt-values/17766/1 "2010-12-05T13:40:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Justin\_Coleman](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/j/3be4f8/32.png) [@Justin\_Coleman](https://discourse.libsdl.org/u/Justin_Coleman)\
**Post date:** [December 5, 2010, 2:57pm UTC](https://discourse.libsdl.org/t/sdl-flags-constamt-values/17766/2 "2010-12-05T14:57:30Z")

</div>

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)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Unseen\_Machine](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/59ef9b/32.png) [@Unseen\_Machine](https://discourse.libsdl.org/u/Unseen_Machine)\
**Post date:** [December 5, 2010, 3:33pm UTC](https://discourse.libsdl.org/t/sdl-flags-constamt-values/17766/3 "2010-12-05T15:33:15Z")

</div>

Will do, i found the joystick ones allready. 😃

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

---

<div class="post-metadata">

**Author:** ![Justin\_Coleman](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/j/3be4f8/32.png) [@Justin\_Coleman](https://discourse.libsdl.org/u/Justin_Coleman)\
**Post date:** [December 5, 2010, 4:14pm UTC](https://discourse.libsdl.org/t/sdl-flags-constamt-values/17766/4 "2010-12-05T16:14:41Z")

</div>

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)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
