Xbox Controller Lean Mapping?

Has anyone figured out a decent way to map the lean function on Xbox controllers please? I have a mouse and keyboard but prefer controllers, more comfortable. TIA