Skip to content

Commit dd533ac

Browse files
haithiumgithub-actions[bot]
authored andcommitted
feat(ecodes): update event codes to latest Linux kernel
1 parent 933fb52 commit dd533ac

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

src/evdev/ecodes.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Generated by "./scripts/generate-ecodes.lua" from "/usr/include/linux/input-event-codes.h"
1+
-- Generated by "./scripts/generate-ecodes.lua" from "input-event-codes.h"
22

33
-- stylua: ignore
44
return {
@@ -156,6 +156,7 @@ return {
156156
KEY_A = 30,
157157
KEY_AB = 406,
158158
KEY_ACCESSIBILITY = 590,
159+
KEY_ACTION_ON_SELECTION = 596,
159160
KEY_ADDRESSBOOK = 429,
160161
KEY_AGAIN = 129,
161162
KEY_ALL_APPLICATIONS = 204,
@@ -234,6 +235,8 @@ return {
234235
KEY_COMPUTER = 157,
235236
KEY_CONFIG = 171,
236237
KEY_CONNECT = 218,
238+
KEY_CONTEXTUAL_INSERT = 597,
239+
KEY_CONTEXTUAL_QUERY = 598,
237240
KEY_CONTEXT_MENU = 438,
238241
KEY_CONTROLPANEL = 579,
239242
KEY_COPY = 133,

types/_enums.d.lua

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---@meta _
22

3-
-- Generated by "./scripts/generate-ecodes.lua" from "/usr/include/linux/input-event-codes.h"
3+
-- Generated by "./scripts/generate-ecodes.lua" from "input-event-codes.h"
44

5+
---
6+
---Button codes (e.g. mouse buttons, joysticks, gamepads).
7+
---
58
-- stylua: ignore
69
---@enum evdev.ecodes.btn
710
local BTN = {
@@ -130,6 +133,9 @@ local BTN = {
130133
BTN_Z = 309
131134
}
132135

136+
---
137+
---Event types (e.g. key press, relative movement, absolute position, synchronization).
138+
---
133139
-- stylua: ignore
134140
---@enum evdev.ecodes.ev
135141
local EV = {
@@ -149,6 +155,9 @@ local EV = {
149155
EV_SYN = 0
150156
}
151157

158+
---
159+
---Keyboard key codes.
160+
---
152161
-- stylua: ignore
153162
---@enum evdev.ecodes.key
154163
local KEY = {
@@ -169,6 +178,7 @@ local KEY = {
169178
KEY_A = 30,
170179
KEY_AB = 406,
171180
KEY_ACCESSIBILITY = 590,
181+
KEY_ACTION_ON_SELECTION = 596,
172182
KEY_ADDRESSBOOK = 429,
173183
KEY_AGAIN = 129,
174184
KEY_ALL_APPLICATIONS = 204,
@@ -247,6 +257,8 @@ local KEY = {
247257
KEY_COMPUTER = 157,
248258
KEY_CONFIG = 171,
249259
KEY_CONNECT = 218,
260+
KEY_CONTEXTUAL_INSERT = 597,
261+
KEY_CONTEXTUAL_QUERY = 598,
250262
KEY_CONTEXT_MENU = 438,
251263
KEY_CONTROLPANEL = 579,
252264
KEY_COPY = 133,
@@ -675,6 +687,9 @@ local KEY = {
675687
KEY_ZOOMRESET = 420
676688
}
677689

690+
---
691+
---Relative axis codes (e.g. mouse movement, scroll wheels).
692+
---
678693
-- stylua: ignore
679694
---@enum evdev.ecodes.rel
680695
local REL = {
@@ -695,6 +710,9 @@ local REL = {
695710
REL_Z = 2
696711
}
697712

713+
---
714+
---Synchronization event codes used to group events or signal device status changes.
715+
---
698716
-- stylua: ignore
699717
---@enum evdev.ecodes.syn
700718
local SYN = {

types/ecodes.d.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---@meta evdev.ecodes
22

3-
-- Generated by "./scripts/generate-ecodes.lua" from "/usr/include/linux/input-event-codes.h"
3+
-- Generated by "./scripts/generate-ecodes.lua" from "input-event-codes.h"
44

5+
---
6+
---Linux input event codes.
7+
---
58
-- stylua: ignore
69
---@class evdev.ecodes
710
local M = {
@@ -159,6 +162,7 @@ local M = {
159162
KEY_A = 30,
160163
KEY_AB = 406,
161164
KEY_ACCESSIBILITY = 590,
165+
KEY_ACTION_ON_SELECTION = 596,
162166
KEY_ADDRESSBOOK = 429,
163167
KEY_AGAIN = 129,
164168
KEY_ALL_APPLICATIONS = 204,
@@ -237,6 +241,8 @@ local M = {
237241
KEY_COMPUTER = 157,
238242
KEY_CONFIG = 171,
239243
KEY_CONNECT = 218,
244+
KEY_CONTEXTUAL_INSERT = 597,
245+
KEY_CONTEXTUAL_QUERY = 598,
240246
KEY_CONTEXT_MENU = 438,
241247
KEY_CONTROLPANEL = 579,
242248
KEY_COPY = 133,

0 commit comments

Comments
 (0)