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