/Zephyr-latest/dts/bindings/input/ |
D | zephyr,input-longpress.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Input longpress pseudo-device 7 Listens for key events as an input and produces key events as output 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 18 input = <&buttons>; 19 compatible = "zephyr,input-longpress"; 20 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 21 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 22 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 23 long-delay-ms = <1000>; [all …]
|
D | zephyr,input-double-tap.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Input double tap pseudo-device 7 Listens for key events as an input and produces key events as output 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 18 input = <&buttons>; 19 compatible = "zephyr,input-double-tap"; 20 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 21 double-tap-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 22 double-tap-delay-ms = <300>; 25 compatible: "zephyr,input-double-tap" [all …]
|
D | zephyr,lvgl-button-input.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 LVGL button indev pseudo-device 7 Listens for button input events and routes the 13 compatible = "zephyr,lvgl-button-input"; 14 input = <&buttons>; 15 input-codes = <INPUT_KEY_0 INPUT_KEY_1>; 20 a click event will be performed at (120,220). 22 compatible: "zephyr,lvgl-button-input" 24 include: zephyr,lvgl-common-input.yaml 27 input-codes: [all …]
|
D | zephyr,lvgl-keypad-input.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 LVGL keypad indev pseudo-device 7 Listens for input events and routes the 10 The property input-codes can be used to setup a mapping of input codes 17 #include <zephyr/dt-bindings/lvgl/lvgl.h> 20 compatible = "zephyr,lvgl-keypad-input"; 21 input = <&buttons>; 22 input-codes = <INPUT_KEY_1 INPUT_KEY_2>; 23 lvgl-codes = <LV_KEY_NEXT LV_KEY_PREV>; 26 compatible: "zephyr,lvgl-keypad-input" [all …]
|
D | microchip,cap12xx.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Microchip CAP12xx family of 3, 6 and 8-channel capacitive touch sensors. 8 include: i2c-device.yaml 11 int-gpios: 12 type: phandle-array 21 poll-interval-ms: 26 input-codes: 30 Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*).
|
D | input-keymap.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Row-column to key mapper 7 Listens for row-column events from the parent device and reports key events. 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 12 #include <zephyr/dt-bindings/input/keymap.h> 17 compatible = "input-keymap"; 29 row-size = <3>; 30 col-size = <3>; 34 compatible: "input-keymap" 41 List of codes, using the MATRIX_KEY() macro. [all …]
|
D | gpio-qdec.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 GPIO based QDEC input device 7 Implement an input device generating relative axis event reports for a rotary 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 18 compatible = "gpio-qdec"; 21 steps-per-period = <4>; 23 sample-time-us = <2000>; 24 idle-timeout-ms = <200>; 27 compatible: "gpio-qdec" 33 type: phandle-array [all …]
|
/Zephyr-latest/tests/subsys/input/longpress/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 10 fake_input_device: fake-device { 11 compatible = "vnd,input-device"; 15 input = <&fake_input_device>; 16 compatible = "zephyr,input-longpress"; 17 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 18 short-codes = <INPUT_KEY_A>, <INPUT_KEY_B>; 19 long-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 20 long-delay-ms = <100>; [all …]
|
/Zephyr-latest/samples/subsys/display/lvgl/boards/ |
D | wio_terminal.overlay | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/input/input-event-codes.h> 7 #include <zephyr/dt-bindings/lvgl/lvgl.h> 11 compatible = "zephyr,lvgl-button-input"; 12 input = <&buttons>; 13 input-codes = <INPUT_KEY_0>; 18 compatible = "zephyr,lvgl-keypad-input"; 19 input = <&joystick>; 20 input-codes = <INPUT_KEY_ENTER INPUT_KEY_DOWN INPUT_KEY_UP INPUT_KEY_LEFT INPUT_KEY_RIGHT>; 21 lvgl-codes = <LV_KEY_ENTER LV_KEY_DOWN LV_KEY_UP LV_KEY_LEFT LV_KEY_RIGHT>;
|
D | st25dv_mb1283_disco.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/lvgl/lvgl.h> 12 compatible = "zephyr,lvgl-pointer-input"; 13 input = <&stmpe811>; 14 invert-y; 18 compatible = "zephyr,lvgl-keypad-input"; 19 input = <&buttons>; 20 …input-codes = <INPUT_KEY_RIGHT INPUT_KEY_LEFT INPUT_KEY_UP INPUT_KEY_DOWN INPUT_KEY_ENTER INPUT_KE… 21 lvgl-codes = <LV_KEY_RIGHT LV_KEY_LEFT LV_KEY_UP LV_KEY_DOWN LV_KEY_ENTER LV_KEY_ESC>;
|
D | native_posix.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/lvgl/lvgl.h> 16 compatible = "gpio-qdec"; 18 steps-per-period = <4>; 20 sample-time-us = <2000>; 21 idle-timeout-ms = <200>; 25 compatible = "gpio-keys"; 59 compatible = "zephyr,lvgl-button-input"; 60 input = <&keys>; [all …]
|
/Zephyr-latest/tests/subsys/input/double_tap/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 10 fake_input_device: fake-device { 11 compatible = "vnd,input-device"; 15 input = <&fake_input_device>; 16 compatible = "zephyr,input-double-tap"; 17 input-codes = <INPUT_KEY_0>, <INPUT_KEY_1>; 18 double-tap-codes = <INPUT_KEY_X>, <INPUT_KEY_Y>; 19 double-tap-delay-ms = <300>;
|
/Zephyr-latest/subsys/input/ |
D | input_keymap.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/input/keymap.h> 11 #include <zephyr/input/input.h> 12 #include <zephyr/input/input_keymap.h> 20 const uint16_t *codes; member 35 const struct keymap_config *cfg = dev->config; in keymap_cb() 36 struct keymap_data *data = dev->data; in keymap_cb() 37 const uint16_t *codes = cfg->codes; in keymap_cb() local 40 switch (evt->code) { in keymap_cb() 42 data->col = evt->value; in keymap_cb() [all …]
|
/Zephyr-latest/doc/services/input/ |
D | index.rst | 3 Input chapter 6 The input subsystem provides an API for dispatching input events from input 9 Input Events 12 The subsystem is built around the :c:struct:`input_event` structure. An input 13 event represents a change in an individual event entity, for example the state 16 The :c:struct:`input_event` structure describes the specific event, and 19 multi-axis device have been reported. 21 Input Devices 24 An input device can report input events directly using :c:func:`input_report` 25 or any related function; for example buttons or other on-off input entities [all …]
|
/Zephyr-latest/dts/bindings/gpio/ |
D | zephyr,gpio-emul-sdl.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 SDL keyboard GPIO input Emulator 8 to be a child of a `zephyr,gpio-emul` compatible. 11 This driver uses USB HID scancodes, they are different from linux key codes, 12 and thus do not match Zephyr code values as described in input-event-codes.h. 17 - Scancode 30: "Keyboard 1 and !", mapped to gpio0 0 18 - Scancode 31: "Keyboard 2 and @", mapped to gpio0 1 19 - Scancode 32: "Keyboard 3 and \#", mapped to gpio0 2 23 INPUT_KEY_1, INPUT_KEY_2 and INPUT_KEY_3 in input-event-codes.h. 25 /* gpio0 has to be a zephyr,gpio-emul device */ [all …]
|
/Zephyr-latest/samples/modules/lvgl/demos/boards/ |
D | st25dv_mb1283_disco.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/lvgl/lvgl.h> 12 compatible = "zephyr,lvgl-pointer-input"; 13 input = <&stmpe811>; 14 invert-y;
|
/Zephyr-latest/include/zephyr/dt-bindings/input/ |
D | input-event-codes.h | 4 * SPDX-License-Identifier: Apache-2.0 6 * Input event codes, for codes available in Linux, use the same values as in 7 * https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/input-event-codes.h 14 * @defgroup input_events Input Event Definitions 21 * @name Input event types. 25 #define INPUT_EV_KEY 0x01 /**< Key event */ 26 #define INPUT_EV_REL 0x02 /**< Relative coordinate event */ 27 #define INPUT_EV_ABS 0x03 /**< Absolute coordinate event */ 28 #define INPUT_EV_MSC 0x04 /**< Miscellaneous event */ 29 #define INPUT_EV_DEVICE 0xef /**< Device specific input event */ [all …]
|
/Zephyr-latest/boards/sparkfun/thing_plus_matter_mgm240p/ |
D | sparkfun_thing_plus_matter_mgm240p-pinctrl.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <dt-bindings/pinctrl/silabs/xg24-pinctrl.h> 15 drive-push-pull; 16 output-high; 20 input-enable; 21 silabs,input-filter; 28 drive-push-pull; 29 output-high; 33 input-enable; [all …]
|
/Zephyr-latest/samples/subsys/input/input_dump/boards/ |
D | esp32_devkitc_wroom_procpu.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 20 channel-num = <8>; 21 channel-sens = <20>; 26 channel-num = <6>; 27 channel-sens = <20>; 32 channel-num = <4>; [all …]
|
D | esp32_devkitc_wrover_procpu.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 20 channel-num = <8>; 21 channel-sens = <20>; 26 channel-num = <6>; 27 channel-sens = <20>; 32 channel-num = <4>; [all …]
|
D | esp32s2_saola.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 20 channel-num = <8>; 21 channel-sens = <20>; 26 channel-num = <6>; 27 channel-sens = <20>; 32 channel-num = <4>; [all …]
|
D | esp32s3_devkitm_procpu.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 8 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h> 14 channel-num = <9>; 15 channel-sens = <20>; 20 channel-num = <8>; 21 channel-sens = <20>; 26 channel-num = <6>; 27 channel-sens = <20>; 32 channel-num = <4>; [all …]
|
/Zephyr-latest/include/zephyr/input/ |
D | input.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * @brief Input Interface 12 * @defgroup input_interface Input Interface 21 #include <zephyr/dt-bindings/input/input-event-codes.h> 30 * @brief Input event structure. 32 * This structure represents a single input event, for example a key or button 37 /** Device generating the event or NULL. */ 41 /** Event type (see @ref INPUT_EV_CODES). */ 44 * Event code (see @ref INPUT_KEY_CODES, @ref INPUT_BTN_CODES, 48 /** Event value. */ [all …]
|
/Zephyr-latest/boards/toradex/verdin_imx8mp/ |
D | verdin_imx8mp_mimx8ml8_m7.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include "verdin_imx8mp-pinctrl.dtsi" 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 23 zephyr,shell-uart = &uart4; 36 current-speed = <115200>; 37 pinctrl-0 = <&uart1_default>; 38 pinctrl-names = "default"; 43 current-speed = <115200>; 44 pinctrl-0 = <&uart4_default>; [all …]
|
D | verdin_imx8mp_mimx8ml8_m7_ddr.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include "verdin_imx8mp-pinctrl.dtsi" 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 23 zephyr,shell-uart = &uart4; 36 current-speed = <115200>; 37 pinctrl-0 = <&uart1_default>; 38 pinctrl-names = "default"; 43 current-speed = <115200>; 44 pinctrl-0 = <&uart4_default>; [all …]
|