Clicker Doesn't Work
Hi, I'm having a little trouble getting the clicker input. From what I've gathered, all I should need to do is have my script extend IInputClickHandler and the clicker should call OnInputClicked. And if I want it to react without it needing to focus I just set a global listener as well right? Or am I doing this wrong?
I've done the above mentioned and it works for when I air tap. However the clicker still does nothing. (Though the clicker is connected to the Hololens)
I'll need to dig up a clicker to test this with to confirm.
Make sure you're either gazing at the object you want to click or add the object to the InputManager's global listeners
Yea all you should need it the IInputClickHandler
Yeap I have tried both adding it to global listeners as well as just gazing and clicking. Sadly, neither worked.
Update: I tried using the clicker in the example scenes for input. Doesn't work. ;/ Any ideas for possible reasons as to why it isn't working? @StephenHodgson
Haven't had time to verify this bug. Sorry.
No worries! @StephenHodgson
@Caltato see if PR #1256 fixed your issue.
I updated all the inputs that don't come from the controller to automatically use the select key press type
@StephenHodgson Hey thanks! I'll try it out and update you when I get back to the office on Monday. Cheers
Hi @StephenHodgson, it still doesn't seem to work, unfortunately. Does it work for you? If so, maybe I'm doing something wrong.
I don't have a clicker to test with, so I can't confirm.
Oh I see. Hmm...
I was able to dig one up today. Here's what I found:
OnInputDown
Source: GesturesInput (HoloToolkit.Unity.InputModule.InteractionInputSource) SourceId: 2000000004 InteractionPressKind: None
OnInputUp
Source: GesturesInput (HoloToolkit.Unity.InputModule.InteractionInputSource) SourceId: 2000000004 InteractionPressKind: None
OnInputClicked
Source: GesturesInput (HoloToolkit.Unity.InputModule.InteractionInputSource) SourceId: 0 InteractionPressKind: Select TapCount: 1
Seems like the clicker source is raising OnInputClicked correctly (although from the wrong SourceId, but not raising OnInputUp/Down correctly with the right press type.
Ha, so the apparently the Clicker counts as a InteractionSourceKind.Controller but when it's clicked does not correctly raise the InteractionSourcePressType.Select properly. It's the same issue we were having with the hands in the HoloLens.
I'll have to write a HACK workaround for now, but this should be submitted as a bug to Unity/MSFT.
Oh! I see. But if it raises OnInputClicked correctly why doesn't it call the code in the function?
Not sure, I can get the OnInputClicked just fine for me, in the InputManagerTest scene.
Just the other stuff isn't working properly.
HAHA Oh man. The test scene doesn't work for me though
What version of the Editor are you running?
I'm using 2017.2.0p1 MRTP4
I tried both 2017.1.2f1 and 2017.2.0f3
I could see why 2017.2.0f3 wouldn't work.
But 2017.1.x I'm surprised doesn't
Yeah. I dont know. I'm quite stuck