You may have happened to have the joystick in port 2 and load a game that requires the joystick on port 1 (or vice versa). To avoid having to unplug and reattach the connector on the correct port there is new hardware to be inserted between the Commodore ports and the joystick so you can easily swap ports by pressing just a button.
There are different types on the market, this is a self-built and you can find the diagrams on the network, the operation is simple, by pressing the button the digital and analog signals coming from the joystick, mouse, pen or paddle are exchanged, by pressing the button again. everything will return to normal mode. The led on the button indicates whether it is in normal or inverted mode.
How does it work...
Operation is quite simple. the micro controls the mode through an input with a button, if normal all the input lines of the respective ports will reflect those relating to the outputs, while if inverted it will control the one of the opposite door.
The only exception for the analog inputs of the ports (pot Ay, Ax and By, Bx), these are exchanged with a dedicated integrated AGD774, a quadruple switch which, controlled by the micro, inverts the analog ports (Ay> By Ax> Bx)