Is there anyway to get the inputs from a controller?

I'd like to make a game that doesn't need on-screen inputs, and uses a actual controller like my Bluetooth Xbox controller.

Is there any sorta extension, or something, that could grab the inputs from it? If so, please tell me.

This is the kind of reverse engineering you seek:

I'm looking for something that can grab inputs from any controller, not just the Xbox controller.