-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathTouch.java
More file actions
61 lines (45 loc) · 1.15 KB
/
Touch.java
File metadata and controls
61 lines (45 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package snap.webapi;
/**
* This class is a wrapper for Web API Touch (https://developer.mozilla.org/en-US/docs/Web/API/Touch).
*/
public class Touch extends Event {
/**
* Constructor.
*/
public Touch(Object jsObj)
{
super(jsObj);
}
/**
* Touch method: getClientX().
*/
public int getClientX() { return getMemberInt("clientX"); }
/**
* Touch method: getClientY().
*/
public int getClientY() { return getMemberInt("clientY"); }
/**
* Touch method: getPageX().
*/
public int getPageX() { return getMemberInt("pageX"); }
/**
* Touch method: getPageY().
*/
public int getPageY() { return getMemberInt("pageY"); }
/**
* Touch method: getScreenX().
*/
public int getScreenX() { return getMemberInt("screenX"); }
/**
* Touch method: getScreenY().
*/
public int getScreenY() { return getMemberInt("screenY"); }
//int getOffsetX();
//int getOffsetY();
//int getPageX();
//int getPageY();
//boolean getCtrlKey();
//boolean getShiftKey();
//boolean getAltKey();
//boolean getMetaKey();
}