From 8fefb8f3e100976235dc83d6ae3785952d11c710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 5 Jul 2021 20:51:43 +0800 Subject: cleanup --- meta/3rd/Cocos4.0/library/cc.EventMouse.lua | 91 +++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 meta/3rd/Cocos4.0/library/cc.EventMouse.lua (limited to 'meta/3rd/Cocos4.0/library/cc.EventMouse.lua') diff --git a/meta/3rd/Cocos4.0/library/cc.EventMouse.lua b/meta/3rd/Cocos4.0/library/cc.EventMouse.lua new file mode 100644 index 00000000..f611c342 --- /dev/null +++ b/meta/3rd/Cocos4.0/library/cc.EventMouse.lua @@ -0,0 +1,91 @@ +---@meta + +---@class cc.EventMouse :cc.Event +local EventMouse={ } +cc.EventMouse=EventMouse + + + + +---* Returns the previous touch location in screen coordinates.
+---* return The previous touch location in screen coordinates.
+---* js NA +---@return vec2_table +function EventMouse:getPreviousLocationInView () end +---* Returns the current touch location in OpenGL coordinates.
+---* return The current touch location in OpenGL coordinates. +---@return vec2_table +function EventMouse:getLocation () end +---* Get mouse button.
+---* return The mouse button.
+---* js getButton +---@return int +function EventMouse:getMouseButton () end +---* Returns the previous touch location in OpenGL coordinates.
+---* return The previous touch location in OpenGL coordinates.
+---* js NA +---@return vec2_table +function EventMouse:getPreviousLocation () end +---* Returns the delta of 2 current touches locations in screen coordinates.
+---* return The delta of 2 current touches locations in screen coordinates. +---@return vec2_table +function EventMouse:getDelta () end +---* Set mouse scroll data.
+---* param scrollX The scroll data of x axis.
+---* param scrollY The scroll data of y axis. +---@param scrollX float +---@param scrollY float +---@return self +function EventMouse:setScrollData (scrollX,scrollY) end +---* Returns the start touch location in screen coordinates.
+---* return The start touch location in screen coordinates.
+---* js NA +---@return vec2_table +function EventMouse:getStartLocationInView () end +---* Returns the start touch location in OpenGL coordinates.
+---* return The start touch location in OpenGL coordinates.
+---* js NA +---@return vec2_table +function EventMouse:getStartLocation () end +---* Set mouse button.
+---* param button a given mouse button.
+---* js setButton +---@param button int +---@return self +function EventMouse:setMouseButton (button) end +---* Returns the current touch location in screen coordinates.
+---* return The current touch location in screen coordinates. +---@return vec2_table +function EventMouse:getLocationInView () end +---* Get mouse scroll data of y axis.
+---* return The scroll data of y axis. +---@return float +function EventMouse:getScrollY () end +---* Get mouse scroll data of x axis.
+---* return The scroll data of x axis. +---@return float +function EventMouse:getScrollX () end +---* Get the cursor position of x axis.
+---* return The x coordinate of cursor position.
+---* js getLocationX +---@return float +function EventMouse:getCursorX () end +---* Get the cursor position of y axis.
+---* return The y coordinate of cursor position.
+---* js getLocationY +---@return float +function EventMouse:getCursorY () end +---* Set the cursor position.
+---* param x The x coordinate of cursor position.
+---* param y The y coordinate of cursor position.
+---* js setLocation +---@param x float +---@param y float +---@return self +function EventMouse:setCursorPosition (x,y) end +---* Constructor.
+---* param mouseEventCode A given mouse event type.
+---* js ctor +---@param mouseEventCode int +---@return self +function EventMouse:EventMouse (mouseEventCode) end \ No newline at end of file -- cgit v1.2.3