# Joystick Component [](https://components.espressif.com/components/espp/joystick) The `Joystick` class provides a wrapper around a 2-axis analog joystick, with an associated reader function for grabbing the raw values. When the joystick `update()` is called, the raw values are mapped into the range `[-1,1]` for each axis according to the configuration provided. ## Example The [example](./example) shows the use of the `Joystick` class to manage the input from and perform mapping / calibration of joystick data from an analog joystick.
939c5d822a3766db327b0c2659e07b7fbd37e8a6
idf.py add-dependency "espp/joystick^1.4.3"