mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
Add initial Druid tests
This commit is contained in:
22
test/helper/mock_input.lua
Normal file
22
test/helper/mock_input.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
local M = {}
|
||||
|
||||
|
||||
function M.click_pressed(x, y)
|
||||
return hash("touch"), {
|
||||
pressed = true,
|
||||
x = x,
|
||||
y = y,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
function M.click_released(x, y)
|
||||
return hash("touch"), {
|
||||
released = true,
|
||||
x = x,
|
||||
y = y,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
return M
|
Reference in New Issue
Block a user