cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide bluetooth mouse cursor?

Ser3nity
Honored Guest
Hi!

I'm working on a Gear VR app in Unity3D that is using a bluetooth mouse as input device. Unfortunately, as soon as you move the mouse, the 2D android mouse cursor comes up, which is doing nothing good in VR, of course. Is there any way to hide it? (No, "Cursor.visible = false" does not work on Android.)

Best Regards,
Claus
4 REPLIES 4

Ser3nity
Honored Guest
The GearVR touchpad is like a mouse, too, so I think this has been solved in the mobile SDK somewhere. I stumbled upon a message in my logcat:

D/PointerIcon( 951): setMouseCustomIcon IconType is same.101

Where is that coming from...?! In fact, it's so commom when you google for it, you get lots of logcat outputs. Is that an API call from somewhere. How to use that?

Best,
Claus

PS: I found another way to get rid of the mouse cursor for good, but it's very, very nasty.

SweetJV
Honored Guest
I've just run into this same problem, and am going mad trying to figure out how to hide the mouse icon.

After a bunch of google-ing, it sounds like maybe there is no standard way to do it. However, it sounds like in Android 7.0 they're introducing a new API for custom mouse pointers:

http://www.androidpolice.com/2016/06/16/android-n-gets-support-custom-mouse-pointers-via-new-api-dev...

Unfortunately, that doesn't help me today. Any chance you could share what your hack was to nuke the mouse cursor?

SweetJV
Honored Guest
Huh. Not sure if it was the latest GearVR update I installed, but it seems like the GearVR main menu and other apps (I tried 360 photos) DO somehow hide the mouse cursor. Maybe it's hidden in all GearVR apps now?

Unfortunately, the thing I'm working on also has to work with Google's Cardboard VR. So, that doesn't really help me. Except now I know it's for sure possible to do.

If any Oculus people see this, can you tell me the magic trick? How do you hide the mouse cursor?

jaycode
Honored Guest
@SweetJV @Ser3nity Have you guys found a solution for this?