Browse Source

gui: Fix incorrect name for touch event

rdb 4 years ago
parent
commit
823985f50d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/gui/DirectButton.py

+ 2 - 2
direct/src/gui/DirectButton.py

@@ -105,11 +105,11 @@ class DirectButton(DirectFrame):
 
         # Tapping with the finger
         if DGG.TOUCH in self['commandButtons']:
-            self.guiItem.addClickButton(MouseButton.tap())
+            self.guiItem.addClickButton(MouseButton.touch())
             self.bind(DGG.TOUCHCLICK, self.commandFunc)
         else:
             self.unbind(DGG.TOUCHCLICK)
-            self.guiItem.removeClickButton(MouseButton.tap())
+            self.guiItem.removeClickButton(MouseButton.touch())
 
     def commandFunc(self, event):
         if self['command']: