You can configure the button mapping in the Game Details screen; it will be saved with your account.
Now, if you want to build a collection of games with the button mappings already done, you can add a keymap.conf file for each game.
Supported key codes for Atari XL/XE
You can send any key press to the emulator using RetroX Button Mappings.
The default configuration for Atari is this:
UP = ATR_UP DOWN = ATR_DOWN LEFT = ATR_LEFT RIGHT = ATR_RIGHT START = ATR_START SELECT = ATR_SELECT TL = ATR_OPTION TR = ATR_HELP TR3 = ATR_RESET BTN_A = ATR_TRIGGER BTN_B = ATR_TRIGGER BTN_X = ATR_SPACE BTN_Y = ATR_SPACE
Valid keys for Atari are:
ATR_A to ATR_Z ATR_0 to ATR_9 ATR_KEY_UP, ATR_KEY_DOWN, ATR_KEY_LEFT, ATR_KEY_RIGHT ATR_RESET, ATR_SELECT, ATR_OPTION, ATR_START, ATR_HELP ATR_ESCAPE, ATR_SPACE
Joystick 1 is:
ATR_UP, ATR_DOWN, ATR_LEFT, ATR_RIGHT, ATR_TRIGGER
Joystick 2 is:
ATR_UP2, ATR_DOWN2, ATR_LEFT2, ATR_RIGHT2, ATR_TRIGGER2
Examples
Remember that we already made the button mappings for each popular game. These are examples of the configuration provided with RetroX:
This is the configuration for Mastertronic’s BMX Simulator. This is a game where the “S” key is used to start the game and the “N” key to select the number of courses, so we mapped them to the standard START and SELECT buttons of the gamepad.
START = ATR_S SELECT = ATR_N
This is a more complex configuration for the game Rescue on Fractalus, where there are keys for landing, calling the mothership, turning the engine on/off, and others:
BTN_A = ATR_L BTN_B = ATR_TRIGGER BTN_X = ATR_S BTN_Y = ATR_B TL = ATR_KEY_LEFT TR = ATR_KEY_RIGHT TL2 = ATR_A