I've tried doing this before and the only way I could find on how to do it was to make a DirectInput buffer that would intercept directinput functions that you could also send false input to. I never figured quite how to do that succesfully though. I'm sure the programmers of XU know how to do it, but I doubt they are going to tell you since they are worried about people taking the information and making a competitor program and making money off of it.
But if you could research on directx and figure out how to make a buffere for directinput that should do what you want, I think
