[SDL] Re: Problem beginning with SDL

Jason Hoffoss jhoffoss at smartshop.com
Fri Mar 16 17:37:09 PST 2001


I'm guessing this would need to go in main(), before you call SDL_INIT().  
Might want to check where you put it.

On Friday 16 March 2001 11:01, you wrote:
> This doesn't work.  Which versions is it valid for?
>
> "Sam Lantinga" <slouken at devolution.com> wrote in message
> news:E14dxWL-0000Se-00 at roboto.devolution.com...
>
> > > Hi all,
> > >     I get the error: Unable to open keyboard when running the following
> > > code.
> > > I want to use SDL on fbcon and have no need for the mouse so can I
> > > quash this
> > > error?
> >
> > Yes, but it's not portable and not officially supported.
> > Set the SDL_NOMOUSE environment variable:
> >
> > #if defined(linux) || defined(__FreeBSD__)
> >     putenv("SDL_NOMOUSE=1");
> > #endif
> >
> > See ya,
> > -Sam Lantinga, Lead Programmer, Loki Entertainment Software



More information about the SDL mailing list