-------------------------------- -- @module Touch -- @extend Ref -- @parent_module cc -------------------------------- -- Returns the previous touch location in screen coordinates.
-- return The previous touch location in screen coordinates. -- @function [parent=#Touch] getPreviousLocationInView -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Returns the current touch location in OpenGL coordinates.
-- return The current touch location in OpenGL coordinates. -- @function [parent=#Touch] getLocation -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Returns the delta of 2 current touches locations in screen coordinates.
-- return The delta of 2 current touches locations in screen coordinates. -- @function [parent=#Touch] getDelta -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Returns the start touch location in screen coordinates.
-- return The start touch location in screen coordinates. -- @function [parent=#Touch] getStartLocationInView -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Returns the current touch force for 3d touch.
-- return The current touch force for 3d touch. -- @function [parent=#Touch] getCurrentForce -- @param self -- @return float#float ret (return value: float) -------------------------------- -- Returns the start touch location in OpenGL coordinates.
-- return The start touch location in OpenGL coordinates. -- @function [parent=#Touch] getStartLocation -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Get touch id.
-- js getId
-- lua getId
-- return The id of touch. -- @function [parent=#Touch] getID -- @param self -- @return int#int ret (return value: int) -------------------------------- -- @overload self, int, float, float, float, float -- @overload self, int, float, float -- @function [parent=#Touch] setTouchInfo -- @param self -- @param #int id -- @param #float x -- @param #float y -- @param #float force -- @param #float maxForce -- @return Touch#Touch self (return value: cc.Touch) -------------------------------- -- Returns the maximum touch force for 3d touch.
-- return The maximum touch force for 3d touch. -- @function [parent=#Touch] getMaxForce -- @param self -- @return float#float ret (return value: float) -------------------------------- -- Returns the current touch location in screen coordinates.
-- return The current touch location in screen coordinates. -- @function [parent=#Touch] getLocationInView -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Returns the previous touch location in OpenGL coordinates.
-- return The previous touch location in OpenGL coordinates. -- @function [parent=#Touch] getPreviousLocation -- @param self -- @return vec2_table#vec2_table ret (return value: vec2_table) -------------------------------- -- Constructor.
-- js ctor -- @function [parent=#Touch] Touch -- @param self -- @return Touch#Touch self (return value: cc.Touch) return nil