/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-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 | 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>; 22 compatible: "zephyr,lvgl-button-input" 24 include: zephyr,lvgl-common-input.yaml 27 input-codes: 31 Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*). [all …]
|
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 | 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 | gpio-keys.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Zephyr Input GPIO KEYS parent node 7 This defines a group of buttons that can generate input events. Each button 8 is defined in a child node of the gpio-keys node and defines a specific key 13 #include <zephyr/dt-bindings/input/input-event-codes.h> 17 compatible = "gpio-keys"; 26 compatible: "gpio-keys" 31 debounce-interval-ms: 38 polling-mode: 42 specified debounce-interval-ms instead. [all …]
|
D | analog-axis.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 ADC based analog axis input device 7 Implement an input device generating absolute axis events by periodically 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 compatible = "analog-axis"; 16 poll-period-ms = <15>; 17 axis-x { 18 io-channels = <&adc 0>; 19 in-deadzone = <50>; 20 in-min = <100>; [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/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/tests/drivers/build_all/input/ |
D | app.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 17 #io-channel-cells = <1>; 18 #address-cells = <1>; 19 #size-cells = <0>; 26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 32 gpio-controller; 34 #gpio-cells = <0x2>; [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/modules/lvgl/input/ |
D | lvgl_keypad_input.c | 4 * SPDX-License-Identifier: Apache-2.0 27 struct lvgl_common_input_data *data = dev->data; in lvgl_keypad_process_event() 28 const struct lvgl_keypad_input_config *cfg = dev->config; in lvgl_keypad_process_event() 31 for (i = 0; i < cfg->num_codes; i++) { in lvgl_keypad_process_event() 32 if (evt->code == cfg->input_codes[i]) { in lvgl_keypad_process_event() 33 data->pending_event.key = cfg->lvgl_codes[i]; in lvgl_keypad_process_event() 38 if (i == cfg->num_codes) { in lvgl_keypad_process_event() 39 LOG_WRN("Ignored input event: %u", evt->code); in lvgl_keypad_process_event() 43 data->pending_event.state = evt->value ? LV_INDEV_STATE_PRESSED : LV_INDEV_STATE_RELEASED; in lvgl_keypad_process_event() 44 if (k_msgq_put(cfg->common_config.event_msgq, &data->pending_event, K_NO_WAIT) != 0) { in lvgl_keypad_process_event() [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 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 48 on the :kconfig:option:`CONFIG_INPUT_MODE` option. If the input thread is used, 49 all the events are added to a queue and executed in a common ``input`` thread. [all …]
|
/Zephyr-latest/samples/subsys/console/getchar/ |
D | README.rst | 1 .. zephyr:code-sample:: console_getchar 4 Use console_getchar() to read an input character from the console. 10 Similar to the well-known ANSI C getchar() function, 11 :c:func:`console_getchar` either returns the next available input 14 process console input character by character. The sample also allows to 15 see key/character codes as returned by the function. 17 If you are interested in line by line console input, see 18 :zephyr:code-sample:`console_getline`. 32 .. zephyr-app-commands:: 33 :zephyr-app: samples/subsys/console/getchar [all …]
|