sync to keep working
This commit is contained in:
parent
236cdd5ef7
commit
e267a0d2ed
12 changed files with 154 additions and 89 deletions
|
@ -71,13 +71,17 @@ local w = pw.window.new()
|
|||
w.title = "pixwerx 0.1"
|
||||
|
||||
-- set size
|
||||
w.size = pw.size.new(1200,800)
|
||||
w.size = pw.size.new(800,600)
|
||||
-- move window
|
||||
w.position = pw.point.new(100,100)
|
||||
|
||||
local ds = pw.display:all()
|
||||
for i = 1,#ds do
|
||||
print("display ",i,ds[i].name)
|
||||
end
|
||||
|
||||
local t = pw.timer.new()
|
||||
|
||||
while w:update()
|
||||
do
|
||||
-- somehow works
|
||||
|
@ -87,6 +91,8 @@ do
|
|||
|
||||
-- just to check
|
||||
if (pw.input:get().mouse_button == 1) then
|
||||
print("elapsed",t.elapsed)
|
||||
t:reset()
|
||||
print(pw.input:get().mouse_position.x,pw.input:get().mouse_position.y)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue