We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5118789 commit 20cb74bCopy full SHA for 20cb74b
1 file changed
src/evdev/uinput.lua
@@ -220,11 +220,21 @@ end
220
local M = {}
221
222
function M.create(spec)
223
- local ui, err = create_uinput(normalize(spec))
+ spec = normalize(spec)
224
+
225
+ local ui, err = create_uinput(spec)
226
if not ui then
227
return nil, err
228
end
- return setmetatable({ _core = ui }, UInput)
229
230
+ local uinput = { _core = ui }
231
+ for k in pairs(defaults) do
232
+ if k ~= "path" then
233
+ uinput[k] = spec[k]
234
+ end
235
236
237
+ return setmetatable(uinput, UInput)
238
239
240
---@diagnostic disable-next-line: undefined-global
0 commit comments