Using SDL without mouse

hello all,

i want to use SDL 1.2.7 on a win32 machine without mouse or keyboard
(some kind of kiosk) - but SDL_Init(SDL_INIT_VIDEO) keeps complaining
that it can’t find DirectInput device (i guess because there is no
mouse connected to the machine) – can anybody help me out …

thnx,
pieter.

I have used SDL and DirectX in the past, and have never heard of this
error occurring because the mouse wasn’t plugged in. This is because
Windows still has a mouse cursor in existence with or without an actual
mouse being plugged in (I don’t know of a system that does it any other
way than this.)

I don’t know the source of your problem, but I did know enough to give
you perhaps a nudge in the right direction. Good luck finding your
problem.On Nov 3, 2004, at 4:37 PM, p.h wrote:

hello all,

i want to use SDL 1.2.7 on a win32 machine without mouse or keyboard
(some kind of kiosk) - but SDL_Init(SDL_INIT_VIDEO) keeps complaining
that it can’t find DirectInput device (i guess because there is no
mouse connected to the machine) – can anybody help me out …

thnx,
pieter.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

try

export SDL_MOUSEDEV="/dev/null"
export SDL_NOMOUSE=“1”

PieroOn Wed, 2004-11-03 at 19:37, p.h wrote:

hello all,

i want to use SDL 1.2.7 on a win32 machine without mouse or keyboard
(some kind of kiosk) - but SDL_Init(SDL_INIT_VIDEO) keeps complaining
that it can’t find DirectInput device (i guess because there is no
mouse connected to the machine) – can anybody help me out …

thnx,
pieter.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

I have used SDL and DirectX in the past, and have never heard of this
error occurring because the mouse wasn’t plugged in. This is because
Windows still has a mouse cursor in existence with or without an actual
mouse being plugged in (I don’t know of a system that does it any other
way than this.)

I don’t know the source of your problem, but I did know enough to give
you perhaps a nudge in the right direction. Good luck finding your
problem.

By default SDL uses DirectX5 calls. But when no mouse is connected these
calls fails at the Init stage.
I recommend this: set SDL_VIDEODRIVER=windib. Sonce all DirectX call are
software calls, it won’t slow up your app.
Dmitry/From: smirk@thebuicksix.com (Donny Viszneki)
To: “p.h” <pieter.heremans at gmx.net>; “A list for developers using the SDL
library. (includesSDL-announce)”
Sent: Thursday, November 04, 2004 1:27 AM
Subject: Re: [SDL] using SDL without mouse