Win32 focus question

hi

i’ve got an SDL application running in the dos-shell which opens up an
SDL window that visualizes some data. the data that is visualized in
this window is also output in the dos-shell.
now i’d like to have two modes for running the prog: with and without
the vizualisation in the SDL window, but if i do not open an SDL window,
i’ve got no focus for SDL keyboard input. is there any way to get the
focus even if you do not have a window opened?

thx
eik

Probably not… (Unless you can find the DOS box and hook SDL’s keyboard
handling up to it.)

The portable, but rather restrictive solution would be to use C stdio when
you’re not using SDL. Don’t know if there’s anything like the DOS API for
Win32 apps…

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -'On Tuesday 03 July 2001 16:11, Eike Umlauf wrote:

hi

i’ve got an SDL application running in the dos-shell which opens up an
SDL window that visualizes some data. the data that is visualized in
this window is also output in the dos-shell.
now i’d like to have two modes for running the prog: with and without
the vizualisation in the SDL window, but if i do not open an SDL window,
i’ve got no focus for SDL keyboard input. is there any way to get the
focus even if you do not have a window opened?