inputdevices: add layout option interface