[PATCH 2/5] dinput: Introduce a new struct to keep input thread state.