-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Description
Consider having a function that returns a tuple of touched pads. Allows for iterating over all touched pads:
for pad in cpx.touched:
print("pad {0} touched!".format(pad))Also allows using the in syntax to check if a pad is touched. Can return ints:
if 1 in cpx.touched:
print("pad 1 touched!")or maybe strings:
if 'A1' in cpx.touched:
print("pad A1 touched!")or something else?
tannewt
Metadata
Metadata
Assignees
Labels
No labels