Windows comes preloaded with some version of Directx, and it's next to impossible to remove or downgrade it. Not knowing your version, I'd suggest just trying to reload the newest version, or 8.1(seems to be one of the more stable vesrions) Of course, if you have newer versions installed, it'll do no good.
I assume your error is due to some input device. So something else to try is maybe reload some of your input drivers. Do you use a joystick or anything like that?
You also don't provice any info. When do you get this error? Every game you run?