- Add a button in the app designer, and in its callback, try to read the values of the flight stick. After reading the values of the flight stick, you can perform the necessary actions.
- If you don't want to click on a button, you can use "timer()" function to continuously check the inputs from the flight stick, and once you get the desired input from the flight stick, you can perform the necessary actions.
Clicking App Designer buttons with a separately (non-mouse) controlled cursor?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am making an app in App Designer that involves a user initiating the program and controlling its settings with a mouse, but once the active phase of the program starts they will be clicking on boxes with a flight stick. During this phase the flight stick will be controlling a custom 'cursor' that is separate from the mouse cursor. The boxes change position on the screen, so retrieving their position and using that to calculate their dimensions on the screen to interact with the custom cursor will be challenging, but possible. I am looking for a cleaner solution.
Is there any way to 'splice' into the Button_Pushed events that the pre-built buttons in App Designer have with a non-mouse activator that is still constrained by the GUI of said button?
0 Commenti
Risposte (1)
Amit Dhakite
il 10 Mag 2023
Hi Thomas,
As per my understanding, you want to get hold of “Button_Pushed” events with a non-mouse activator such as a flight stick.
The built in buttons responds to the mouse events, but not for the non-mouse activators. However, there are few workarounds you can try:
For further information about “timer()” function, kindly refer to the following link:
0 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!