inputdevices: check layout validity