I don't know how to take input from Keyes_SJoys joystick

I'm pretty new to Arduino but I have experience with other electronic hardwares so I understand the principle of most of it (how to wire etc...) but I'm not sure how to program it to receive more-or-less digital inputs just to turn on/off some LEDs.

The joystick I'm using is: Plexishop.it - Arduino Joystick Module - Joystick module Keyes sJoys

I've looked for a similar post, and I may be bad at searching but I didn't find anything I was looking for.

Thanks!

Looks just like mine. See here for connections.

Each axis is just a potentiometer- see how to program one in the IDE: File > Examples > Analog > AnalogInOutSerial which actually uses the pot's input to PWM a motor... For two axes, use two analog pins and double up the code, ensuring you use different variables like sensorValueX and sensorValueY.

The push switch is just a switch... mine has a pull down resistor built-in so its active high; read it on a digital pin as shown in the IDE: File > Examples > Basics > DigitalReadSerial

Thanks! that was exactly what I needed!

Okay, I though I was all good, turns out I'm not; what I'm trying to do is control a RGB LED, the B is linked with the X-axis the G with the Y, and the R is supposed to be linked with the Z-axis, the problem is that the Z-axis is a digital input so I am trying to increment brightness with each press. I've tried a couple ways but they haven't worked, any ideas?
Thanks!

I tied the button high AND low, so yeah... that wasn't helping (and was the source of my problem)

I think the only way you would get a third analog axis, is with a second stick...