Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
InputEventScreenDrag¶
Inherits: InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Represents a screen drag event.
描述¶
Stores information about screen drag events. See Node._input.
教程¶
属性¶
|
||
|
||
|
||
|
||
|
||
|
||
|
Property Descriptions¶
int index = 0
The drag event index in the case of a multi-drag event.
bool pen_inverted = false
Returns true
when using the eraser end of a stylus pen.
Vector2 position = Vector2(0, 0)
The drag position.
float pressure = 0.0
Represents the pressure the user puts on the pen. Ranges from 0.0
to 1.0
.
Vector2 relative = Vector2(0, 0)
The drag position relative to the previous position (position at the last frame).
Vector2 tilt = Vector2(0, 0)
Represents the angles of tilt of the pen. Positive X-coordinate value indicates a tilt to the right. Positive Y-coordinate value indicates a tilt toward the user. Ranges from -1.0
to 1.0
for both axes.
Vector2 velocity = Vector2(0, 0)
The drag velocity.