5 posts
Posted 11 December 2012 - 01:29 PM
Hello, i am currently planning on learning and scripting in lua.
im wondering if anybody has a mouse api for a start menu ill try to develop in a os im in
planning.Plz reply asap.
2217 posts
Location
3232235883
Posted 11 December 2012 - 01:37 PM
not sure what you mean by mouse api, i mean there is no reason to make one
its just a simple event pull .-.
5 posts
Posted 11 December 2012 - 02:03 PM
By what i mean by mouse api is a better way of detecting mouse clicks(And the difference between right and left clicks) To
make it like windows in the advanced computer version.
1688 posts
Location
'MURICA
Posted 11 December 2012 - 02:03 PM
You mean a GUI API?
5 posts
Posted 11 December 2012 - 02:07 PM
No,Something that could let me effectively tell if the Mouse click was right or left
1688 posts
Location
'MURICA
Posted 11 December 2012 - 02:10 PM
local ev, p1 = os.pullEvent('mouse_click')
print(p1)
Prints 1 for left click, 2 for right click, and (i think) 3 for middle click.
5 posts
Posted 11 December 2012 - 02:10 PM
Ok Thanks.