zephyr/samples/subsys/input/input_dump
Alberto Escolar Piedras 196341c18b samples: Switch integration_platforms from native_posix to native_sim
For all remaining samples which now set their integration platform
as native_posix(_64) switch them to native_sim(_64)

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-20 12:02:48 +01:00
..
src samples: input_dump: use CONFIG_INPUT_EVENT_DUMP 2023-07-12 10:53:04 +00:00
CMakeLists.txt
prj.conf samples: input_dump: use CONFIG_INPUT_EVENT_DUMP 2023-07-12 10:53:04 +00:00
README.rst doc: Migrate subsys/ code samples to new Sphinx extension 2023-09-21 09:28:31 +02:00
sample.yaml samples: Switch integration_platforms from native_posix to native_sim 2023-11-20 12:02:48 +01:00

.. zephyr:code-sample:: input-dump
   :name: Input dump
   :relevant-api: input_events

   Print all input events.

Overview
********

The Input Dump sample prints any input event using the :ref:`input` APIs.

Requirements
************

The samples works on any board with an input driver defined in the board devicetree.

Building and Running
********************

Build and flash as follows, changing ``nrf52dk_nrf52832`` for your board:

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/input/input_dump
   :board: nrf52dk_nrf52832
   :goals: build flash
   :compact:

After starting, the sample will print any input event in the console.