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

70 lines
2.1 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module Touch
-- @extend Ref
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the previous touch location in screen coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getPreviousLocationInView
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the current touch location in OpenGL coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getLocation
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the delta of 2 current touches locations in screen coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getDelta
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the start touch location in screen coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getStartLocationInView
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the start touch location in OpenGL coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getStartLocation
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- js getId<br>
-- lua getId
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getID
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] setTouchInfo
-- @param self
-- @param #int id
-- @param #float x
-- @param #float y
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the current touch location in screen coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getLocationInView
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- returns the previous touch location in OpenGL coordinates
2014-03-10 14:04:58 +08:00
-- @function [parent=#Touch] getPreviousLocation
-- @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=#Touch] Touch
-- @param self
return nil