evive has inbuilt 5-way navigational (or Joystick), which is used to navigate in evive menu based system. The navigational key has 4 directions: left, right, up and down. This information is provided by the analog pin A11.
The table provides you with the corresponding values for directions:
The sample code is provided below:
The centre switch is connected to the digital pin 19 in active or high mode. This means that if the switch is pressed, then pin 19 is high, otherwise, the pin is LOW.