It should be saving the mapping in the cfg folder. Make sure the folder is not read-only, and has a default.cfg file created, and a cfg file for each game played at least once.
If not read-only, I think that 0.81 is after human readable cfg files were added; if so, open default.cfg in a text editor and see if it has lines for player 2 buttons 5 & 6 inside.