Make XInput haptic code respect effect timeouts.

This is really just a hack until this code expands to be a robust haptic mixer.

(This is also untested, beyond compiling. Sorry!)

--HG--
extra : rebase_source : 1ea0101273d96c6d82db9b603a575e265d4ee426
Fixed some compiler warnings that Visual Studio reported.
More compiler warning fixes.
One more compiler warning.