Hi;
I am trying to create a script that displays some buttons in the UP state, waits for a button press, and then displays the button PRESSED until it is released, then displays the Button UP, and then exits.
The reason for doing this inside the script file, is that I don't want the microcontroller to have to handle the display button push DOWN & UP, but have a script handle it and when it's done, it quits and the micro can then query the coord and decide which button was pressed.
So I need to detect which button was pressed so that I can display it's DOWN button, however I don't seem to be able to get the touch coord in the script:
i.e:
if X > 10 and X < 50 and Y > 10 and Y < 20 then
' It was button A that was pressed
I am trying to create a script that displays some buttons in the UP state, waits for a button press, and then displays the button PRESSED until it is released, then displays the Button UP, and then exits.
The reason for doing this inside the script file, is that I don't want the microcontroller to have to handle the display button push DOWN & UP, but have a script handle it and when it's done, it quits and the micro can then query the coord and decide which button was pressed.
So I need to detect which button was pressed so that I can display it's DOWN button, however I don't seem to be able to get the touch coord in the script:
i.e:
if X > 10 and X < 50 and Y > 10 and Y < 20 then
' It was button A that was pressed
Comment