Controls for gaming system.

How do I set what the controls will be on a gaming system. Is this something done in the making of the game or is it only done after the game is already made ? (pre or post production) ?

If you mean input, the documentation covers that quite well.