Macro-based controller mapping