Dozingfiretruck 11 сар өмнө
parent
commit
c833e8490c
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      demo/lcd/main.lua

+ 1 - 1
demo/lcd/main.lua

@@ -188,7 +188,7 @@ if tp then
             while 1 do 
                 local result, tp_device, tp_data = sys.waitUntil("TP")
                 if result then
-                    if tp_data[1].event == 1 or tp_data[1].event == 3 then
+                    if tp_data[1].event == tp.EVENT_TYPE_DOWN or tp_data[1].event == tp.EVENT_TYPE_MOVE then
                         lcd.drawPoint(tp_data[1].x, tp_data[1].y, 0xF800)
                         if lcd_use_buff then
                             lcd.flush()