Allow buttons to be mapped to a game controller dpad. Related to issue #144.