There are a wide variety of gamepads on the market. Including such terrible features as different "standards" for what you call the four buttons on the right side.
The SDL calls these "north, south, east and west" facing buttons. However, this is confusing for students (who often don't know their cardinal directions) so we display the dropdown choices as the labels on the particular button.
However, at the block that generates the code "is_pressed(SOUTH_FACE)" which knows it was the A button - it can't generate a comment because that could be in the middle of a code line.
What I would like is some way to give comments that go either at the end or previous to the code line being generated.
So for example you would see:
if is_pressed(SOUTH_FACE): # A is SOUTH_FACE on xbox controller
or for a more complicated example:
if is_pressed(SOUTH_FACE) and is_pressed(NORTH_FACE): # A is SOUTH_FACE on xbox controller, Y is NORTH_FACE on xbox controller
another possibility would be:
# A is SOUTH_FACE on xbox controller
# Y is NORTH_FACE on xbox controller
if is_pressed(SOUTH_FACE) and is_pressed(NORTH_FACE):
any ideas on how to do this in a reasonable way?
Thanks in advance,
Alan