libretro/RetroArch — pull request #481 by Themaister (2014-01-08 16:55:25+00:00)
Title: Analog D-pad mapping

This is my proposed solution for generalizing the old "D-pad emulation" feature.

It uses input_push/pop_analog_pad to update the bind maps appropriately. Doing it this way, no input driver should have to care what's going on (obviously, it must check both joybtn/joyaxis field appropriately like any well behaving driver).

It also supports the mapping for overlay analogs as a bonus.