You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions