Hiding the 'kng cursor on OS X
Unfortunately Openscenegraph 1.2 under os x 10.4 (well in my installation anyway) rendersurface.useCursor(False) doesn’t hide the cursor. It may work in the latest release 2.2, but then I’d have to redo the swig bindings.
The brutal workaround, is to use a preference pane called cursorcerer . Which works a treat, except that after each reboot, the System Preference pane needs to be reloaded and interacted with for it to function.
The solution is to switch on a the “Enable Access for Assistive Devices” in the Universal Access preference pane, and add this apple script to the startup items:
activate application "System Preferences" tell application "System Preferences" activate set current pane to pane "com.doomlaser.cursorcerer" end tell tell application "System Events" tell process "System Preferences" click checkbox "Always show cursor if moved" of window "Cursorcerer" delay 1 click checkbox "Always show cursor if moved" of window "Cursorcerer" end tell end tell
I had problems with this under 10.5 leopard, so looked closely at the openscenegraph/producer code and realised that I just had to switch the cursor off, *after* the window had been realised, not before.