Unity 2019.4.11, Android device is Pico G2 4K, which is a standalone vr headset.
There are 2 buttons available on this device, one is back button, another is a “confirm” button.
Here is the thing: The back button can be accessed with Keyboard escape button in the new Input System. The “confirm” button, doesn’t belongs to controller or anything. In old Input Manager, I can access it with KeyCode.JoystickButton1. However, in new Input System, this button doesn’t map to any joystick, keyboard, or any other available devices.
The possible device list has “AndroidJoystick”, “Mouse” and “Keyboard” (8 of them) in it. I checked and none of them mapped to this “confirm” key. I checked again with the “escape” button, it’s mapped to keyboard5, which doesn’t have any special property, except the product field is “gpio-keys”. I assume this is how the button works in the hardware. So I believe, this “JoystickButton1” can also be accessed with this device. I debugged with Input Debugger, click escape will trigger “anykey” on this keyboard device, but click the “confirm” key doesn’t trigger “anykey”, and no key in this layout has response to my button press.
I failed to find information on how to find this key and get its signal in the Input System. Can someone helps me out?
I also contacted the company who is responsible to the hardware, they say they’ll investigate it but I don’t have any feedback so far. I believe, that if this key is accessable through Input Manager, should be able to be accessed in Input System, but I need a way to do this.