Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/evdev/ecodes.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Generated by "./scripts/generate-ecodes.lua" from "/usr/include/linux/input-event-codes.h"
-- Generated by "./scripts/generate-ecodes.lua" from "input-event-codes.h"

-- stylua: ignore
return {
Expand Down Expand Up @@ -156,6 +156,7 @@ return {
KEY_A = 30,
KEY_AB = 406,
KEY_ACCESSIBILITY = 590,
KEY_ACTION_ON_SELECTION = 596,
KEY_ADDRESSBOOK = 429,
KEY_AGAIN = 129,
KEY_ALL_APPLICATIONS = 204,
Expand Down Expand Up @@ -234,6 +235,8 @@ return {
KEY_COMPUTER = 157,
KEY_CONFIG = 171,
KEY_CONNECT = 218,
KEY_CONTEXTUAL_INSERT = 597,
KEY_CONTEXTUAL_QUERY = 598,
KEY_CONTEXT_MENU = 438,
KEY_CONTROLPANEL = 579,
KEY_COPY = 133,
Expand Down
20 changes: 19 additions & 1 deletion types/_enums.d.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---@meta _

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

---
---Button codes (e.g. mouse buttons, joysticks, gamepads).
---
-- stylua: ignore
---@enum evdev.ecodes.btn
local BTN = {
Expand Down Expand Up @@ -130,6 +133,9 @@ local BTN = {
BTN_Z = 309
}

---
---Event types (e.g. key press, relative movement, absolute position, synchronization).
---
-- stylua: ignore
---@enum evdev.ecodes.ev
local EV = {
Expand All @@ -149,6 +155,9 @@ local EV = {
EV_SYN = 0
}

---
---Keyboard key codes.
---
-- stylua: ignore
---@enum evdev.ecodes.key
local KEY = {
Expand All @@ -169,6 +178,7 @@ local KEY = {
KEY_A = 30,
KEY_AB = 406,
KEY_ACCESSIBILITY = 590,
KEY_ACTION_ON_SELECTION = 596,
KEY_ADDRESSBOOK = 429,
KEY_AGAIN = 129,
KEY_ALL_APPLICATIONS = 204,
Expand Down Expand Up @@ -247,6 +257,8 @@ local KEY = {
KEY_COMPUTER = 157,
KEY_CONFIG = 171,
KEY_CONNECT = 218,
KEY_CONTEXTUAL_INSERT = 597,
KEY_CONTEXTUAL_QUERY = 598,
KEY_CONTEXT_MENU = 438,
KEY_CONTROLPANEL = 579,
KEY_COPY = 133,
Expand Down Expand Up @@ -675,6 +687,9 @@ local KEY = {
KEY_ZOOMRESET = 420
}

---
---Relative axis codes (e.g. mouse movement, scroll wheels).
---
-- stylua: ignore
---@enum evdev.ecodes.rel
local REL = {
Expand All @@ -695,6 +710,9 @@ local REL = {
REL_Z = 2
}

---
---Synchronization event codes used to group events or signal device status changes.
---
-- stylua: ignore
---@enum evdev.ecodes.syn
local SYN = {
Expand Down
8 changes: 7 additions & 1 deletion types/ecodes.d.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---@meta evdev.ecodes

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

---
---Linux input event codes.
---
-- stylua: ignore
---@class evdev.ecodes
local M = {
Expand Down Expand Up @@ -159,6 +162,7 @@ local M = {
KEY_A = 30,
KEY_AB = 406,
KEY_ACCESSIBILITY = 590,
KEY_ACTION_ON_SELECTION = 596,
KEY_ADDRESSBOOK = 429,
KEY_AGAIN = 129,
KEY_ALL_APPLICATIONS = 204,
Expand Down Expand Up @@ -237,6 +241,8 @@ local M = {
KEY_COMPUTER = 157,
KEY_CONFIG = 171,
KEY_CONNECT = 218,
KEY_CONTEXTUAL_INSERT = 597,
KEY_CONTEXTUAL_QUERY = 598,
KEY_CONTEXT_MENU = 438,
KEY_CONTROLPANEL = 579,
KEY_COPY = 133,
Expand Down