initial commit with all the stuff

This commit is contained in:
2025-11-23 13:27:23 +01:00
parent 3f7069b328
commit 1c8a143e7a
5241 changed files with 986176 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
local evdev = require "evdev"
local dev = evdev.Device("/dev/input/event0")
local x = 0
local y = 0
while true do
local timestamp, eventType, eventCode, value = dev:read()
if eventType == evdev.EV_ABS then
if eventCode == 57 then
if value < 0 then
print("Up: ",x,y)
end
elseif eventCode == 0 then
y = value
elseif eventCode == 1 then
x = value
end
end
end