Is there any way to hook into react three drei KeyboardControls and programatically trigger a key press?
Here are the docs for the KeyboardControls component, it seems to use zustand
under the hood:
https://github.com/pmndrs/drei#keyboardcontrols
I've tried all sorts, including: Is it possible to simulate key press events programmatically?
As well as using useRef
but I can't seem to find a way to create buttons for scenarios where the user does not have a keyboard (such as on mobile).
Does anyone know if this is possible?