awesome/tests/examples/awful/mouse/coords.lua

14 lines
251 B
Lua
Raw Normal View History

screen[1]._resize {x = 175, width = 128, height = 96} --DOC_HIDE
mouse.coords {x=175+60,y=60} --DOC_HIDE
-- Get the position
print(mouse.coords().x)
-- Change the position
mouse.coords {
x = 185,
y = 10
}
mouse.push_history() --DOC_HIDE