code: def handle_input(self, ncode, wparam, lparam):
          
          x_pos = lparam.contents.x_pos
          y_pos = lparam.contents.y_pos
          data = lparam.contents.mousedata
  
          # This is how we can distinguish mouse 1 from mouse 2
          # extrainfo = lparam.contents.extrainfo
          # The way windows seems to do it is there is primary mouse
          # and all other mouses report as mouse 2
  
          # Also useful later will be to support the flags field
          # flags = lparam.contents.flags
          # This shows if the event was from a real device or whether it
          # was injected somehow via software
  
          self.emulate_mouse(wparam, x_pos, y_pos, data)
  
          # Give back control to Windows to wait for and process the
          # next event
          return ctypes.windll.user32.CallNextHookEx(
              self.hooked, ncode, wparam, lparam)
docs: Process the key input.