Distinguish Input and Output Devices