Cleanup: comment on source of button event codes

This commit is contained in:
Christian Rauch 2021-07-07 13:21:57 +01:00
parent 0153e99780
commit ecbf838fee
Notes: blender-bot 2023-02-14 04:46:12 +01:00
Referenced by commit 7b954ba7a1, GHOST/wayland: remove unused 'input-event-codes.h' header
1 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,13 @@
#include <cstring>
#include <linux/input-event-codes.h>
/* selected input event code defines from 'linux/input-event-codes.h'
* We include some of the button input event codes here, since the header is
* only available in more recent kernel versions. The event codes are used to
* to differentiate from which mouse button an event comes from.
*/
#define BTN_LEFT 0x110
#define BTN_RIGHT 0x111
#define BTN_MIDDLE 0x112