Use a button widget and call the same function that you call pressing the keyboard number in the “OnClick” event.
You might need to pass the elevator reference to the widget, create a variable of type elevator and set it when you create the widget
Use a button widget and call the same function that you call pressing the keyboard number in the “OnClick” event.
You might need to pass the elevator reference to the widget, create a variable of type elevator and set it when you create the widget