|
Description
Elias Vanderstuyft
2014-08-15 14:55:39 UTC
Created attachment 1816 [details]
Don't interpret a direction of polar 35999 (or linux-direction 0xFFFF) as "unsupported type".
Created attachment 1817 [details]
Fix the misconception that DInput's POLAR direction doesn't match Linux's direction.
Note: this also solves a rounding bug that e.g. caused zero direction to give non-zero output of the X-force value.
Created attachment 1818 [details]
Explicitly avoid floating point arithmetic if it's not needed.
This appears to be the common case in games, especially since the existence of multi-axes force-feedback devices is extremely small.
Created attachment 1819 [details]
Fix the misconception that Linux' saturation and deadband parameters - on which the corresponding SDL parameters were based - use only half of the possible range
Note: untested on Darwin and Windows
Created attachment 1821 [details]
Fix a number of clamping bugs for Windows haptics, by using the Darwin haptics code
Note: untested on Windows
Created attachment 1822 [details]
Add some missing haptic types to test, and fix wrong array-sizes
These are all in revision control now, thanks!
https://hg.libsdl.org/SDL/rev/2412ba127e23
https://hg.libsdl.org/SDL/rev/a57a1d70ae07
https://hg.libsdl.org/SDL/rev/16b5dda99337
https://hg.libsdl.org/SDL/rev/8973a237f360
https://hg.libsdl.org/SDL/rev/8e04e17c7af3
https://hg.libsdl.org/SDL/rev/0c1a46c018aa
I _really_ appreciate that you stuck with this work so long and kept reminding us to get these fixes in. I'm glad you kept at it.
--ryan.
(In reply to Ryan C. Gordon from comment #7) > These are all in revision control now, thanks! > > https://hg.libsdl.org/SDL/rev/2412ba127e23 > https://hg.libsdl.org/SDL/rev/a57a1d70ae07 > https://hg.libsdl.org/SDL/rev/16b5dda99337 > https://hg.libsdl.org/SDL/rev/8973a237f360 > https://hg.libsdl.org/SDL/rev/8e04e17c7af3 > https://hg.libsdl.org/SDL/rev/0c1a46c018aa > > I _really_ appreciate that you stuck with this work so long and kept > reminding us to get these fixes in. I'm glad you kept at it. No problem, it was a pleasure to me! ;) This project deserves good haptic support. I still have to commit my equivalent patches for Wine (there are 30+ of them!), I'm afraid getting those in will be much harder, wish me luck (and time) ;-) Good luck! :) (In reply to Sam Lantinga from comment #9) > Good luck! :) Thanks! |