1# Copyright 2024 Kelly Helmut Lord 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 Input double tap pseudo-device 6 7 Listens for key events as an input and produces key events as output 8 corresponding to double taps. 9 10 Can be optionally be associated to a specific device to listen for events 11 only from that device. 12 13 Example configuration: 14 15 #include <zephyr/dt-bindings/input/input-event-codes.h> 16 17 double_tap { 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>; 23 }; 24 25compatible: "zephyr,input-double-tap" 26 27properties: 28 input: 29 type: phandle 30 description: | 31 Input device phandle, if not specified listen for input from all devices. 32 33 input-codes: 34 type: array 35 required: true 36 description: | 37 Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*). 38 39 double-tap-codes: 40 type: array 41 required: true 42 description: | 43 Array of key codes to be generated for double taps (INPUT_KEY_* or INPUT_BTN_*). 44 45 double-tap-delay-ms: 46 type: int 47 required: true 48 description: Maximum time delay between taps to register a double tap, in milliseconds. 49