getting device input port in editor