docs: fix links, add references, rename files (#5138)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
.. _porting_indev:
|
||||
|
||||
======================
|
||||
Input device interface
|
||||
======================
|
||||
@@ -24,7 +26,7 @@ The ``type`` member can be:
|
||||
``read_cb`` is a function pointer which will be called periodically to
|
||||
report the current state of an input device.
|
||||
|
||||
Visit `Input devices </overview/indev>`__ to learn more about input
|
||||
Visit :ref:`Input devices <indev>` to learn more about input
|
||||
devices in general.
|
||||
|
||||
Touchpad, mouse or any pointer
|
||||
@@ -187,6 +189,8 @@ should look like ``const lv_point_t points_array[] = { {12,30},{60,90}, ...}``
|
||||
When the ``button_read`` callback in the example above changes the ``data->btn_id`` to ``0``
|
||||
a press/release action at the first index of the ``points_array`` will be performed (``{12,30}``).
|
||||
|
||||
.. _porting_indev_other_features:
|
||||
|
||||
Other features
|
||||
**************
|
||||
|
||||
@@ -258,7 +262,7 @@ Further reading
|
||||
***************
|
||||
|
||||
- `lv_port_indev_template.c <https://github.com/lvgl/lvgl/blob/master/examples/porting/lv_port_indev_template.c>`__ for a template for your own driver.
|
||||
- `INdev features </overview/display>`__ to learn more about higher level input device features.
|
||||
- `INdev features <indev>` to learn more about higher level input device features.
|
||||
|
||||
API
|
||||
***
|
||||
|
||||
Reference in New Issue
Block a user