code: def register_hid_device(screen_width, screen_height,
                          absolute=False, integrated_display=False):
      
      message = create(protobuf.REGISTER_HID_DEVICE_MESSAGE)
      descriptor = message.inner().deviceDescriptor
      descriptor.absolute = 1 if absolute else 0
      descriptor.integratedDisplay = 1 if integrated_display else 0
      descriptor.screenSizeWidth = screen_width
      descriptor.screenSizeHeight = screen_height
      return message
docs: Create a new REGISTER_HID_DEVICE_MESSAGE.