Program on a computer without a mouse by SDL

Hi folks,

I am new to SDL and I want to make a shooting game myself so as to learn SDL. But I have two computers, the old one dun have a mouse and I am thinking a shooting game, like alien dun require a mouse, rite? so I decided to test the program [aliens] in that computer but I find that it cant read any input from keyboard… but it is fine after I put my PS2 mouse in…

Is there any way to disable mouse or simply u dun need a mouse to play keyboard SDL game?
(I have tried to use SDL_ShowCursor(0) , but no use…)

pls help

p.s. my system is slackware 10

Many thx
ET

edison wrote:

Hi folks,

I am new to SDL and I want to make a shooting game myself so as to learn SDL. But I have two computers, the old one dun have a mouse and I am thinking a shooting game, like alien dun require a mouse, rite? so I decided to test the program [aliens] in that computer but I find that it cant read any input from keyboard… but it is fine after I put my PS2 mouse in…

Is there any way to disable mouse or simply u dun need a mouse to play keyboard SDL game?
(I have tried to use SDL_ShowCursor(0) , but no use…)

pls help

p.s. my system is slackware 10

Many thx
ET


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

Hi ET,

I am not to shour about that but SDL just gets the input for OS /
X-server and hense the problem should be in there. To awnser your
question, by the theory you don’t need a mouse pluged in with a X-server
or SDL. You can ither disable your mouse in the X-server, but don’t ask
me how, or you can filter out the mouse events, go see
SDL_SetEventFilter
(http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSetEventFilter). But this
might not be what you want.

Sean