Joystick not working after switching from UNO

Where would I need to put the resistors you are mentioning?

Between digital pins you are reading and ground.