Reverse engineer USB HID device: easy way to hack up USB hardware?
Teensy is quite good at being USB HID: https://pjrc.com/teensy/usb_keyboard.html

But if you want to plug it into an xbox, the software side may be slightly more complicated; I don't think the xbox controllers are simple USB HID and I believe they have anti-cloning systems.