I want to have a code component under each frame, when I hold down the right-left arrow keys it will increment/decrement a variable. This will be used to rotate a line real time. At my current setup you need to constantly press and release, I want to make it so that as long as I hold down the key, the orientation will be updated. By the way, I’d appreciate a method which would also work online.
keys = event.getKeys(keyList=['left','right'])
if 'left' in keys:
rot_line.ori += 2.0
elif 'right' in keys:
rot_line.ori -= 2.0