Implemented dynamic input-device-switching