[DirectInput] Mouse values never zero
I''ve got a little problem with relative mouse data. The values I''m getting for up/down and left/right axis are never zero, even if I let go of the mouse.
I''m using the DirectInput action mapping code generated by the wizard, modified slightly to use the mouse axis rather than keyboard-based ones.
Anyone know why this is happening? I guess I can just stick a ''deadzone'' of +-0.001f into the code, but that''s not a very neat solution.
You''re using an optical mouse I assume? Just like it was with joysticks, I would suggest just writing a deadzone.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement