I'm trying to constrain the mouse to a rectangular area on screen. I've
installed a vbl task that resets the mouse to just inside the borders of
my rect if it goes outside that rect, but of course that isn't good
enough. The user can still move the mouse outside the rect for a split
second, which looks bad.
So, how can I catch the mouse movements before they happen, so to speak?
(BTW, I know this isn't cool with the UI police, and I wouldn't normally
do it either, but I'm porting some routines from the PC, and this is one
of them...)
And hey, while I'm here, how can I (temporarily) set the mouse control
panel settings? I want to set the mouse speed to a particular setting so
that I can have my own mouse sensitivity setting in my game. I'll change
the mouse speed invisibly as the user enters or leaves the game, sort of
like changing the bit depth on the fly. It's just too annoying to have to
go to the control panel before playing the game, and it would be nice if
my game's own mouse sensitivity setting was consistent, rather than
changing according to the control panel setting.
Thanks,
Mike.
: Thanks,
: Mike.
Well, I rewrote the mouse driver(not the ADB part, just the crsrCouple
part)... I also had the same problem. As an added bonus, I can now
have a 64x64 mouse masked to two regions, not just one. This allows
the mouse to look as though it's bounded to a non-rectangular area...
I don't know if I want to release the code just yet, but if
you have specific questions and are decent at asm, send me some e-mail...
Ben Diamand
bdia...@netcom.com
ALINK:bdiamand