inputdevices: add set func