Hid shim and emulator stuff