Hi guys
I know that there’s no way in current SDL API to get:
- number of mouse buttons
- info about existance of mouse wheels
Well, there has been thread about what new things to add in incoming SDL versions; so I’d like to submit a proposal of adding one new function and type:
void SDL_GetMouseInfo( SDL_MouseInfo * caps);
struct SDL_MouseInfo
{
int buttons; // number of mouse buttons, + maybe special value (-1) when there’s no mouse available?
int wheels; // number of mouse wheels, there are mices without them, with one wheel, two wheels; I’ve not heard of more wheels in mouse
// other things? probably not
};
Of course, this could be implemented in this form, (or more likely) in other, which would fit better into planned multiple mice system. What’s important is to have a way of querying for aforementioned values.
Pardon me if it’s impossible to add this because of sth, probably lack of portability - since there’s no mouse in handhelds or other platforms like Dreamcast… but, hmmm, in this situation, why there are available other mouse functions? or keyboard? IMHO, adding one function (+ type) wouldn’t bloat SDL very much.
Anyway, I had to write about it to have peace of mind :-)–
Koshmaar
<Of all the things I’'ve lost, I miss my mind the most>
GG: 3928072
http://jnr.sourceforge.net/
www.pongowar.prv.pl