Touchscreen slide between info, hourly and daily page instead of keyboard.
Opened this issue · 3 comments
I would like to switch between pages just by swiping on the touchscreen, instead of using a keyboard. I tried to change the code to make it work, but I have no idea to use touchscreen, because I think I can't use the "event.key" like if it was a keyboard. Does anyone knows how to do this?
I would actually like this too. My most recent setup has a touchscreen so I was already planning to look into this.
Sent with GitHawk
I had this code in my previous version to toggle between main and vacation home weather. Something like this may work for you.
if event.type == pygame.MOUSEBUTTONUP:
if zip_code == '85260':
zip_code = '60450'
myDisp.UpdateWeather()
else:
zip_code = '85260'
myDisp.UpdateWeather()
Good! Trying this soon and coming back to you guys if its working!