package/kernel: use macros for hid & input