Press CTRL-1 to get to mapper screen. You can see joystick controls on the top right side. To map it press 1, Y-, 2, etc..., click add, push the joystick button or move it, then press save. When you click exit, dosbox will automatically create mapper.txt. Hope this helps.