Difference between revisions of "love.mouse (简体中文)"

(鼠标)
 
Line 1: Line 1:
 +
提供鼠标接口的东东.
 +
== 函数 ==
 +
{{#ask: [[Category:Functions]] [[parent::love.mouse]] [[Concept:Current]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
== 枚举|类似属性的东西 ==
 +
{{#ask: [[Category:Enums]] [[parent::love.mouse]] [[Concept:Current]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
== 顺便看看 ==
 +
* [[parent::love]]
 +
* [[love.mousepressed]]
 +
* [[love.mousereleased]]
 +
[[Category:Modules]]
 +
{{#set:Description=提供鼠标接口的模块.}}
 +
{{#set:Since=000}}
 
== 多国语言  ==
 
== 多国语言  ==
 
{{i18n|love.mouse}}
 
{{i18n|love.mouse}}

Revision as of 03:25, 15 March 2013

提供鼠标接口的东东.

函数

love.mouse.getCursorGets the current Cursor.
love.mouse.getPositionReturns the current position of the mouse.
love.mouse.getRelativeModeGets whether relative mode is enabled for the mouse.
love.mouse.getSystemCursorGets a Cursor object representing a system-native hardware cursor.
love.mouse.getXReturns the current x-position of the mouse.
love.mouse.getYReturns the current y-position of the mouse.
love.mouse.hasCursorGets whether cursor functionality is supported.
love.mouse.isCursorSupportedGets whether cursor functionality is supported.
love.mouse.isDownChecks whether a certain button is down.
love.mouse.isGrabbedChecks if the mouse is grabbed.
love.mouse.isVisibleChecks if the cursor is visible.
love.mouse.newCursorCreates a new hardware Cursor object from an image.
love.mouse.setCursorSets the current mouse cursor.
love.mouse.setGrabGrabs the mouse and confines it to the window.
love.mouse.setGrabbedGrabs the mouse and confines it to the window.
love.mouse.setPositionSets the current position of the mouse.
love.mouse.setRelativeModeSets whether relative mode is enabled for the mouse.
love.mouse.setVisibleSets the current visibility of the cursor.
love.mouse.setXSets the current X position of the mouse.
love.mouse.setYSets the current Y position of the mouse.

枚举|类似属性的东西

CursorTypeTypes of hardware cursors.
MouseConstantMouse buttons.

顺便看看


多国语言