Encapsulates the Touch information, such as touch point, id and so on, and provides the methods that commonly used.
More...
#include <CCTouch.h>
Encapsulates the Touch information, such as touch point, id and so on, and provides the methods that commonly used.
Returns the delta of 2 current touches locations in screen coordinates.
- Returns
- The delta of 2 current touches locations in screen coordinates.
Returns the delta of 2 current touches locations in screen coordinates.
- Returns
- The delta of 2 current touches locations in screen coordinates.
Returns the delta of 2 current touches locations in screen coordinates.
- Returns
- The delta of 2 current touches locations in screen coordinates.
Vec2 getLocation |
( |
| ) |
const |
Returns the current touch location in OpenGL coordinates.
- Returns
- The current touch location in OpenGL coordinates.
Returns the current touch location in OpenGL coordinates.
- Returns
- The current touch location in OpenGL coordinates.
Returns the current touch location in OpenGL coordinates.
- Returns
- The current touch location in OpenGL coordinates.
Vec2 getLocationInView |
( |
| ) |
const |
Returns the current touch location in screen coordinates.
- Returns
- The current touch location in screen coordinates.
var getLocationInView |
( |
| ) |
|
Returns the current touch location in screen coordinates.
- Returns
- The current touch location in screen coordinates.
local getLocationInView |
( |
| ) |
|
Returns the current touch location in screen coordinates.
- Returns
- The current touch location in screen coordinates.
Vec2 getPreviousLocation |
( |
| ) |
const |
Returns the previous touch location in OpenGL coordinates.
- Returns
- The previous touch location in OpenGL coordinates.
var getPreviousLocation |
( |
| ) |
|
Returns the previous touch location in OpenGL coordinates.
- Returns
- The previous touch location in OpenGL coordinates.
local getPreviousLocation |
( |
| ) |
|
Returns the previous touch location in OpenGL coordinates.
- Returns
- The previous touch location in OpenGL coordinates.
Vec2 getPreviousLocationInView |
( |
| ) |
const |
Returns the previous touch location in screen coordinates.
- Returns
- The previous touch location in screen coordinates.
var getPreviousLocationInView |
( |
| ) |
|
Returns the previous touch location in screen coordinates.
- Returns
- The previous touch location in screen coordinates.
local getPreviousLocationInView |
( |
| ) |
|
Returns the previous touch location in screen coordinates.
- Returns
- The previous touch location in screen coordinates.
Vec2 getStartLocation |
( |
| ) |
const |
Returns the start touch location in OpenGL coordinates.
- Returns
- The start touch location in OpenGL coordinates.
Returns the start touch location in OpenGL coordinates.
- Returns
- The start touch location in OpenGL coordinates.
local getStartLocation |
( |
| ) |
|
Returns the start touch location in OpenGL coordinates.
- Returns
- The start touch location in OpenGL coordinates.
Vec2 getStartLocationInView |
( |
| ) |
const |
Returns the start touch location in screen coordinates.
- Returns
- The start touch location in screen coordinates.
var getStartLocationInView |
( |
| ) |
|
Returns the start touch location in screen coordinates.
- Returns
- The start touch location in screen coordinates.
local getStartLocationInView |
( |
| ) |
|
Returns the start touch location in screen coordinates.
- Returns
- The start touch location in screen coordinates.
void setTouchInfo |
( |
int |
id, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| |
|
inline |
Set the touch infomation.
It always used to monitor touch event.
- Parameters
-
id | A given id |
x | A given x coordinate. |
y | A given y coordinate. |
var setTouchInfo |
( |
var |
id, |
|
|
var |
x, |
|
|
var |
y |
|
) |
| |
|
inline |
Set the touch infomation.
It always used to monitor touch event.
- Parameters
-
id | A given id |
x | A given x coordinate. |
y | A given y coordinate. |
local setTouchInfo |
( |
local |
id, |
|
|
local |
x, |
|
|
local |
y |
|
) |
| |
|
inline |
Set the touch infomation.
It always used to monitor touch event.
- Parameters
-
id | A given id |
x | A given x coordinate. |
y | A given y coordinate. |
The documentation for this class was generated from the following file:
- /Users/minggo/SourceCode/cocos2d-x/cocos/base/CCTouch.h