dinput: Keep track of input thread users using public refcounts.
And start the input thread when first user is created, then stop it when
last user is destroyed.
The thread will not need to enter the hook critical section on stop, as
no public reference are held and devices are already unacquired.
Showing
Please
register
or
sign in
to comment