Added support for devices with D-pad.