Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Problem hiding Mac cursor

This thread is locked; no one can reply to it. rss feed Print
Problem hiding Mac cursor
Runesabre
Member #7,573
August 2006
avatar

I use a custom rendered mouse in my game so I hide the regular system mouse.

On Windows I do a combination of scare_mouse and a show_mouse(NULL).

On Linux, I do a show_os_cursor(MOUSE_CURSOR_NONE).

On Mac, I can't seem to hide the mouse cursor regardless of what combination of Allegro mouse handling calls I make. I've had this problem with Allegro 4.2.0, 4.2.1 and the latest 4.2.2.

Does anyone have any suggestions on how I can get the Mac mouse cursor to hide?

_______________
Runesabre
Connecting People through Inspiring Interactive Entertainment
Enspira Online

Elias
Member #358
May 2000

show_os_cursor(MOUSE_CURSOR_NONE) should work everywhere, no need for platform specifics for that. You need platform specific code for the other way around though, since e.g. under Windows, you normally won't get a system cursor in fullscreen modes.

--
"Either help out or stop whining" - Evert

Peter Hull
Member #1,136
March 2001

Does exmouse work for you?

Pete

Runesabre
Member #7,573
August 2006
avatar

I'll check out exmouse tonight, Peter and see what the results are.

_______________
Runesabre
Connecting People through Inspiring Interactive Entertainment
Enspira Online

Peter Hull
Member #1,136
March 2001

Is this the same as this one
http://www.allegro.cc/forums/thread/592589/688836#target
i.e. it only occurs in 32bit fullscreen?

I'm going to look into it. I think this came up a while ago, didn't it...

Pete

-- -- -- -- -- -- -- --

[edit] Can you try the attached patch?

Go to: