hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00
Showing only changes of commit 1ea7a740fe - Show all commits

View File

@ -38,6 +38,7 @@ hdc.rectangle(cmd4_rect[0], cmd4_rect[1], cmd4_rect[2], cmd4_rect[3])
msg = {}
while upiwin.get_message(msg):
if msg['message'] == upiwin.WM_TOUCHCLICK:
print("Click at {0},{1}".format(msg['attrs'][0], msg['attrs'][1])
if point_in_rect(cmd1_rect, msg['attrs'][0], msg['attrs'][1]):
print("Click command 1")
elif point_in_rect(cmd2_rect, msg['attrs'][0], msg['attrs'][1]):