colinodell / mqtt-control-panel

A simple alarm control panel for Home Assistant's manual_mqtt alarm. Designed to run on a Raspberry Pi using an Adafruit 3.5" PiTFT.
MIT License
86 stars 25 forks source link

Buttons Don't work #3

Open scottbrumley opened 6 years ago

scottbrumley commented 6 years ago

Hi I'm running your code on a raspberrypi 3 with the touch screen. Everything works fine loads up and MQTT connects, but the buttons and textboxes do not respond to touches.

Any pointers? I'm sure something is missing that is keeping it from working.

P.S. The touch screen works fine in xWindows.

Sumokai commented 6 years ago

I've got the same issue. In "alarmpanel/ui.py", if you modify your "pygame.mouse.set_visible(False)" to "pygame.mouse.set_visible(True)" to be able to see the mouse and if you add a print(pos) in "the def process_input(self):" to return the mouse position, you'll see that the mouse do as it want randomly. I've sent an email to the author but not response yet. Have you fix it on your side ?