1 1.1 jmcneill /* $NetBSD: input.h,v 1.1.1.2 2017/11/30 19:40:51 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1.1.2 jmcneill /* SPDX-License-Identifier: GPL-2.0 */ 4 1.1 jmcneill /* 5 1.1 jmcneill * This header provides constants for most input bindings. 6 1.1 jmcneill * 7 1.1 jmcneill * Most input bindings include key code, matrix key code format. 8 1.1 jmcneill * In most cases, key code and matrix key code format uses 9 1.1 jmcneill * the standard values/macro defined in this header. 10 1.1 jmcneill */ 11 1.1 jmcneill 12 1.1 jmcneill #ifndef _DT_BINDINGS_INPUT_INPUT_H 13 1.1 jmcneill #define _DT_BINDINGS_INPUT_INPUT_H 14 1.1 jmcneill 15 1.1 jmcneill #include "linux-event-codes.h" 16 1.1 jmcneill 17 1.1 jmcneill #define MATRIX_KEY(row, col, code) \ 18 1.1 jmcneill ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF)) 19 1.1 jmcneill 20 1.1 jmcneill #endif /* _DT_BINDINGS_INPUT_INPUT_H */ 21