dinput: Move acquired flag to the base device class. Add tests.