input: add input device information functions