#!/bin/sh set -eu $1 -dM -include linux/input.h - / { next } /^#define[ \t]+(KEY|BTN)_[^ ]+[ \t]+[0-9BK]/ { print $2 } '