final commit for today - still searching to get the mouse_button
This commit is contained in:
parent
f840d51f4f
commit
fdf7714d11
6 changed files with 55 additions and 16 deletions
|
@ -32,7 +32,6 @@ local q2 = pw.quaternion.new(0,0,0,1)
|
|||
qm = pw.quaternion.lerp(q,qi,0.5)
|
||||
print("q.m",qm.x,qm.y,qm.z,qm.w)
|
||||
|
||||
|
||||
-- axis angle test
|
||||
local aa = pw.axisangle.new(v1,0.707)
|
||||
|
||||
|
@ -56,6 +55,7 @@ n_1:add_child(pw.node.create()).name = "five"
|
|||
|
||||
print("node 1 - child count ",n_1.child_count)
|
||||
|
||||
-- stuff
|
||||
for i = 1,n_1.child_count do
|
||||
print(i,n_1.children[i],n_1.children[i].name)
|
||||
end
|
||||
|
@ -73,9 +73,15 @@ w.title = "pixwerx 0.1"
|
|||
-- set size
|
||||
w.size = pw.size.new(1200,800)
|
||||
|
||||
|
||||
while w:update()
|
||||
do
|
||||
|
||||
if (pw.input:get().mouse_button > 0) then
|
||||
print(pw.input:get().mouse_position.x,pw.input:get().mouse_position.y)
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- print("update")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue