code: def mouseMoveEvent(self, ev):
      lpos = ev.position() if hasattr(ev, "position") else ev.localPos()
      dif = lpos - self.pressPos
      self.setState(dif.x(), -dif.y())
  
file_path: pyqtgraph/pyqtgraph/widgets/JoystickButton.py
imports: from math import hypot
  from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 3 for calling the JoystickButton obj's underlying member method code with example usage: obj.mouseMoveEvent(ev) without return types