Mail Archives: djgpp/1999/11/29/12:07:02
Damian Yerrick writes:
>> does anybody know of a library-extension for allegro
>> to get input from a mouse wheel?
>
> They're working on integrating a z-axis into the mouse driver
> right now.
That is only in the Windows and Linux versions.
> It might just be a hidden part of interrupt 33h.
> Have you looked at Ralf Brown's list? Is the mouse's wheel
> in there?
Nope, I don't think there is any driver support for doing this in DOS.
To read the wheel, you'd have to access the mouse hardware directly,
rather than going through int 0x33. But this causes many other problems,
such as requiring you to write special code for each possible type
of mouse, and not working on most systems other than a clean DOS
environment (Allegro used to do that in very early versions, and it
caused many, many difficulties). It is infinitely more robust to use
int 0x33, which limits you to the information available from it. Since
Microsoft are very unlikely ever to update this interface for wheel
support, that makes it impractical for us to support wheel input in DOS.
Shawn Hargreaves.
- Raw text -