Fuged Yes indeed it is possible to do that, but if you see some Japanese indie folks, who simply develop games for their hobby, you will see some of them write this in their readme:
"Q: I want to use Joystick.
A: Please use JoyToKey."
This way, they can save a bit of time without putting all joystick stuff in. Beside, joystick's button mapping is all different for each joystick. Try grab yourself XBOX joystick and Logitech Joystick, their "button 1" is different button.
So if the player must map all these button presses anyway, let's have something more simple for the programming side.
Hence, this topic. ;)