-
Notifications
You must be signed in to change notification settings - Fork 4
/
InputEventScreenDrag.hx
65 lines (51 loc) · 1.39 KB
/
InputEventScreenDrag.hx
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
62
63
64
65
// Automatically generated Godot externs: DO NOT EDIT
// MIT licensed, see LICENSE.md
package godot;
import cs.system.*;
/**
Contains screen drag information. See `godot.Node._Input`.
**/
@:libType
@:csNative
@:native("Godot.InputEventScreenDrag")
@:autoBuild(godot.Godot.buildUserClass())
extern class InputEventScreenDrag extends godot.InputEvent {
/**
The drag speed.
**/
@:native("Speed")
public var speed:godot.Vector2;
/**
The drag position relative to the previous position (position at the last frame).
**/
@:native("Relative")
public var relative:godot.Vector2;
/**
The drag position.
**/
@:native("Position")
public var position:godot.Vector2;
/**
The drag event index in the case of a multi-drag event.
**/
@:native("Index")
public var index:Int;
@:native("new")
public function new():Void;
@:native("SetIndex")
public function setIndex(index:Int):Void;
@:native("GetIndex")
public function getIndex():Int;
@:native("SetPosition")
public function setPosition(position:godot.Vector2):Void;
@:native("GetPosition")
public function getPosition():godot.Vector2;
@:native("SetRelative")
public function setRelative(relative:godot.Vector2):Void;
@:native("GetRelative")
public function getRelative():godot.Vector2;
@:native("SetSpeed")
public function setSpeed(speed:godot.Vector2):Void;
@:native("GetSpeed")
public function getSpeed():godot.Vector2;
}