raiseDBusError(ERR+"InvalidArgument", f"Coordinates ({x},{y}) are out of bounds. Valid range: x=0-{cols-1}, y=0-{rows-1}")
c_input=controller.get_input(identifier)
ifc_inputisNone:
raiseDBusError(ERR+"InvalidArgument", f"Could not find input at coordinates ({x},{y})")
ifstate<0orstate>=len(c_input.states):
raiseDBusError(ERR+"InvalidArgument", f"Position ({x},{y}) has {len(c_input.states)} state(s) (0-{len(c_input.states)-1}). Requested state {state} does not exist")