The games you play should support a controller interface, most of them probably work with a keyboard and mouse and not exclusively with a controller.
There are generic gamepad-to-keyboard/mouse mappers, for Linux I know about antimicro, but the best solution is for the game to natively support a gamepad.