Code: Select all
if event.action == 'held' and event.direction == 'right':
Code: Select all
if event.action == 'held' and event.direction == 'right':
Thanks but I have actually looked at the entire documentation and much more and however I cannot find anything on doing two different actions in the same direction. Sadly I am in the process of getting a new SenseHat the other one is having big issues and along with compass calibration not working and the joystick no longer working the color of letters displayed on the screen goes wonky and is not the color I set it too. Even worse it kept reading everything like temperature, etc, as 0. It looks as if it is having some serious connection issues.bensimmo wrote: ↑Thu Apr 26, 2018 9:03 pmI've not actually use the joystick but for reference
https://pythonhosted.org/sense-hat/api/#joystick
Others have though![]()
Just react on the direction and the action depending on the event.action - The action that occurred, as a string ("pressed", "released", "held")