love.mouse (正體中文)

Provides an interface to the user's mouse.|提供一个用户鼠标接口(接口这个词真是让人遐想连篇) 我点差了...误编辑了繁体中文翻译版了...不知道台湾的朋友们看不看的懂已经蹉跎了的汉字儿 我點錯了...不小心編輯了繁體中文版塊...不知道台灣的朋友們看不看的懂已經蹉跎了的漢字兒

Functions|功能们哦~亲

love.mouse.getPosition Returns the current position of the mouse.
love.mouse.getX Returns the current x-position of the mouse.
love.mouse.getY Returns the current y-position of the mouse.
love.mouse.isDown Checks whether a certain button is down.
love.mouse.isGrabbed Checks if the mouse is grabbed.
love.mouse.isVisible Checks if the cursor is visible.
love.mouse.setGrab Grabs the mouse and confines it to the window.
love.mouse.setPosition Sets the current position of the mouse.
love.mouse.setVisible Sets the current visibility of the cursor.
love.mouse.setX Sets the current X position of the mouse.
love.mouse.setY Sets the current Y position of the mouse.

Enums

MouseConstant Mouse buttons.

See Also


Other Languages

Personal tools