RokidGlass/glass2-docs

Question about rokid x_craft

Opened this issue · 6 comments

when i create button ui in unity . i can not select it with wheel button on hardware

Get event from wheel button on hardware :
Input.GetKeyDown(KeyCode.JoystickButton0)

Did u have manual document of rokid with unity?

image
so if i want to interaction with there button i choose use
1Input.GetKeyDown(KeyCode.Mouse0)
2.Input.GetKeyDown(KeyCode.Mouse1)
right?

image
so if i want to interaction with there button i choose use
1Input.GetKeyDown(KeyCode.Mouse0)
2.Input.GetKeyDown(KeyCode.Mouse1)
right?

Do KeyCode.Mouse0 & KeyCode.Mouse1 work for your device with your Unity settings?
For the button near wheel button, you can try with KeyCode.Escape