Joystick Button

Now i understood.

My Joystick has 5 pins, gnd, VCC, VRx, VRy and SW, i have all 4 connected, the SW to 2, the VRx to analog A0, GND and VCC directly to the Breadboard.

Already changed - if (buttonState == 1) {

Will check the tutorial you sent me

Thanks!!!