axmol/cocos/scripting/lua-bindings/auto/api/EventMouse.lua

106 lines
3.1 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module EventMouse
-- @extend Event
-- @parent_module cc
--------------------------------
-- returns the previous touch location in screen coordinates
-- @function [parent=#EventMouse] getPreviousLocationInView
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
-- returns the current touch location in OpenGL coordinates
-- @function [parent=#EventMouse] getLocation
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] getMouseButton
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- returns the previous touch location in OpenGL coordinates
-- @function [parent=#EventMouse] getPreviousLocation
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
-- returns the delta of 2 current touches locations in screen coordinates
-- @function [parent=#EventMouse] getDelta
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Set mouse scroll data
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] setScrollData
-- @param self
-- @param #float scrollX
-- @param #float scrollY
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the start touch location in screen coordinates
-- @function [parent=#EventMouse] getStartLocationInView
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
-- returns the start touch location in OpenGL coordinates
-- @function [parent=#EventMouse] getStartLocation
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] setMouseButton
-- @param self
-- @param #int button
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the current touch location in screen coordinates
-- @function [parent=#EventMouse] getLocationInView
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] getScrollY
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] getScrollX
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] getCursorX
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] getCursorY
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] setCursorPosition
-- @param self
-- @param #float x
-- @param #float y
2014-03-10 14:04:58 +08:00
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#EventMouse] EventMouse
-- @param self
-- @param #int mouseEventCode
2014-03-10 14:04:58 +08:00
return nil