I was trying to see if I could make a button be clicked when pressing S on a keyboard in perspective
I saw a method for vision to do it on the forums but does perspective have one?
I was trying to see if I could make a button be clicked when pressing S on a keyboard in perspective
I saw a method for vision to do it on the forums but does perspective have one?
Note: don't have your key press handler try to invoke the button (besides this not being possible in Perspective, it's a bad pattern).
Instead, move business logic to a custom method on a component or, even better, a project library script. Accept only the pure parameters you care about, and return a simple value. Then your key press and your button can invoke the same script as needed.