parameters: (self, action)
docstring: Returns a string label describing the mapping for a given action,
          for displaying in a GUI.
docstring_summary: Returns a string label describing the mapping for a given action,
          for displaying in a GUI.
docstring_tokens: Returns a string label describing the mapping for a given action for displaying in a GUI .
function: def formatMapping(self, action):
          """Returns a string label describing the mapping for a given action,
          for displaying in a GUI. """
          mapping = self.__map.get(action)
          if not mapping:
              return "Unmapped"
  
          # Format the symbolic string from Panda nicely.  In a real-world game,
          # you might want to look these up in a translation table, or so.
          label = mapping[1].replace('_', ' ').title()
          if mapping[0] == "axis":
              return "Axis: " + label
          else:
              return "Button: " + label
function_tokens: def formatMapping ( self , action ) : mapping = self . __map . get ( action ) if not mapping : return "Unmapped" # Format the symbolic string from Panda nicely.  In a real-world game, # you might want to look these up in a translation table, or so. label = mapping [ 1 ] . replace ( '_' , ' ' ) . title ( ) if mapping [ 0 ] == "axis" : return "Axis: " + label else : return "Button: " + label