2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 01:03:48 +00:00
<class name= "@GlobalScope" version= "4.0" >
2017-09-12 20:42:36 +00:00
<brief_description >
2021-11-25 11:24:09 +00:00
Global scope constants and functions.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2021-11-25 11:24:09 +00:00
A list of global scope enumerated constants and built-in functions. This is all that resides in the globals, constants regarding error codes, keycodes, property hints, etc.
2017-09-12 20:42:36 +00:00
Singletons are also documented here, since they can be accessed from anywhere.
2021-11-25 11:24:09 +00:00
For the entries related to GDScript which can be accessed in any script see [@GDScript].
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
2021-11-25 11:24:09 +00:00
<link title= "Random number generation" > $DOCS_URL/tutorials/math/random_number_generation.html</link>
2017-09-12 20:42:36 +00:00
</tutorials>
<methods >
2020-11-17 10:21:08 +00:00
<method name= "abs" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "x" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
2021-11-06 14:17:54 +00:00
Returns the absolute value of a [Variant] parameter [code]x[/code] (i.e. non-negative value). Variant types [int], [float] (real), [Vector2], [Vector2i], [Vector3] and [Vector3i] are supported.
[codeblock]
var a = abs(-1)
# a is 1
var b = abs(-1.2)
# b is 1.2
var c = abs(Vector2(-3.5, -4))
# c is (3.5, 4)
var d = abs(Vector2i(-5, -6))
# d is (5, 6)
var e = abs(Vector3(-7, 8.5, -3.8))
# e is (7, 8.5, 3.8)
var f = abs(Vector3i(-7, -8, -9))
# f is (7, 8, 9)
[/codeblock]
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "absf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the absolute value of float parameter [code]x[/code] (i.e. positive value).
[codeblock]
# a is 1.2
2021-09-28 14:33:43 +00:00
var a = absf(-1.2)
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "absi" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "x" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Returns the absolute value of int parameter [code]x[/code] (i.e. positive value).
[codeblock]
# a is 1
2021-09-28 14:33:43 +00:00
var a = absi(-1)
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "acos" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
2021-03-15 16:25:22 +00:00
Returns the arc cosine of [code]x[/code] in radians. Use to get the angle of cosine [code]x[/code]. [code]x[/code] must be between [code]-1.0[/code] and [code]1.0[/code] (inclusive), otherwise, [method acos] will return [constant @GDScript.NAN].
2020-11-17 10:21:08 +00:00
[codeblock]
# c is 0.523599 or 30 degrees if converted with rad2deg(c)
2021-09-28 14:33:43 +00:00
var c = acos(0.866025)
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "asin" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
2021-03-15 16:25:22 +00:00
Returns the arc sine of [code]x[/code] in radians. Use to get the angle of sine [code]x[/code]. [code]x[/code] must be between [code]-1.0[/code] and [code]1.0[/code] (inclusive), otherwise, [method asin] will return [constant @GDScript.NAN].
2020-11-17 10:21:08 +00:00
[codeblock]
# s is 0.523599 or 30 degrees if converted with rad2deg(s)
2021-09-28 14:33:43 +00:00
var s = asin(0.5)
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "atan" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
2021-09-28 14:33:43 +00:00
Returns the arc tangent of [code]x[/code] in radians. Use it to get the angle from an angle's tangent in trigonometry.
2020-11-17 10:21:08 +00:00
The method cannot know in which quadrant the angle should fall. See [method atan2] if you have both [code]y[/code] and [code]x[/code].
[codeblock]
2021-09-28 14:33:43 +00:00
var a = atan(0.5) # a is 0.463648
2020-11-17 10:21:08 +00:00
[/codeblock]
2021-09-28 14:33:43 +00:00
If [code]x[/code] is between [code]-PI / 2[/code] and [code]PI / 2[/code] (inclusive), [code]atan(tan(x))[/code] is equal to [code]x[/code].
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "atan2" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "y" type= "float" />
<argument index= "1" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the arc tangent of [code]y/x[/code] in radians. Use to get the angle of tangent [code]y/x[/code]. To compute the value, the method takes into account the sign of both arguments in order to determine the quadrant.
Important note: The Y coordinate comes first, by convention.
[codeblock]
2021-09-28 14:33:43 +00:00
var a = atan2(0, -1) # a is 3.141593
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "bytes2var" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "bytes" type= "PackedByteArray" />
2020-11-17 10:21:08 +00:00
<description >
Decodes a byte array back to a [Variant] value, without decoding objects.
[b]Note:[/b] If you need object deserialization, see [method bytes2var_with_objects].
</description>
</method>
<method name= "bytes2var_with_objects" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "bytes" type= "PackedByteArray" />
2020-11-17 10:21:08 +00:00
<description >
Decodes a byte array back to a [Variant] value. Decoding objects is allowed.
2021-08-11 17:13:26 +00:00
[b]Warning:[/b] Deserialized object can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats (remote code execution).
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "ceil" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Rounds [code]x[/code] upward (towards positive infinity), returning the smallest whole number that is not less than [code]x[/code].
[codeblock]
2021-09-28 14:33:43 +00:00
var i = ceil(1.45) # i is 2.0
i = ceil(1.001) # i is 2.0
2020-11-17 10:21:08 +00:00
[/codeblock]
2020-12-21 18:02:57 +00:00
See also [method floor], [method round], and [method snapped].
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "clamp" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "value" type= "Variant" />
<argument index= "1" name= "min" type= "Variant" />
<argument index= "2" name= "max" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
2021-11-06 14:17:54 +00:00
Clamps the [Variant] [code]value[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code]. Variant types [int], [float] (real), [Vector2], [Vector2i], [Vector3] and [Vector3i] are supported.
[codeblock]
var a = clamp(-10, -1, 5)
# a is -1
var b = clamp(8.1, 0.9, 5.5)
# b is 5.5
var c = clamp(Vector2(-3.5, -4), Vector2(-3.2, -2), Vector2(2, 6.5))
# c is (-3.2, -2)
var d = clamp(Vector2i(7, 8), Vector2i(-3, -2), Vector2i(2, 6))
# d is (2, 6)
var e = clamp(Vector3(-7, 8.5, -3.8), Vector3(-3, -2, 5.4), Vector3(-2, 6, -4.1))
# e is (-3, -2, 5.4)
var f = clamp(Vector3i(-7, -8, -9), Vector3i(-1, 2, 3), Vector3i(-4, -5, -6))
# f is (-4, -5, -6)
[/codeblock]
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "clampf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "value" type= "float" />
<argument index= "1" name= "min" type= "float" />
<argument index= "2" name= "max" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Clamps the float [code]value[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code].
[codeblock]
2021-09-28 14:33:43 +00:00
var speed = 42.1
2020-11-17 10:21:08 +00:00
# a is 20.0
2021-09-28 14:33:43 +00:00
var a = clampf(speed, 1.0, 20.0)
2020-11-17 10:21:08 +00:00
speed = -10.0
# a is -1.0
a = clampf(speed, -1.0, 1.0)
[/codeblock]
</description>
</method>
<method name= "clampi" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "value" type= "int" />
<argument index= "1" name= "min" type= "int" />
<argument index= "2" name= "max" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Clamps the integer [code]value[/code] and returns a value not less than [code]min[/code] and not more than [code]max[/code].
[codeblock]
2021-09-28 14:33:43 +00:00
var speed = 42
2020-11-17 10:21:08 +00:00
# a is 20
2021-09-28 14:33:43 +00:00
var a = clampi(speed, 1, 20)
2020-11-17 10:21:08 +00:00
speed = -10
# a is -1
a = clampi(speed, -1, 1)
[/codeblock]
</description>
</method>
<method name= "cos" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "angle_rad" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the cosine of angle [code]angle_rad[/code] in radians.
[codeblock]
2021-09-28 14:33:43 +00:00
cos(PI * 2) # Returns 1.0
cos(PI) # Returns -1.0
cos(deg2rad(90)) # Returns 0.0
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "cosh" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the hyperbolic cosine of [code]x[/code] in radians.
[codeblock]
# Prints 1.543081
print(cosh(1))
[/codeblock]
</description>
</method>
<method name= "db2linear" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "db" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Converts from decibels to linear energy (audio).
</description>
</method>
<method name= "deg2rad" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "deg" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Converts an angle expressed in degrees to radians.
[codeblock]
# r is 3.141593
2021-09-28 14:33:43 +00:00
var r = deg2rad(180)
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "ease" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
<argument index= "1" name= "curve" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
2021-09-20 14:01:33 +00:00
Returns an "eased" value of [code]x[/code] based on an easing function defined with [code]curve[/code]. This easing function is based on an exponent. The [code]curve[/code] can be any floating-point number, with specific values leading to the following behaviors:
[codeblock]
- Lower than -1.0 (exclusive): Ease in-out
- 1.0: Linear
- Between -1.0 and 0.0 (exclusive): Ease out-in
- 0.0: Constant
2021-11-23 13:32:43 +00:00
- Between 0.0 to 1.0 (exclusive): Ease out
2021-09-20 14:01:33 +00:00
- 1.0: Linear
2021-11-23 13:32:43 +00:00
- Greater than 1.0 (exclusive): Ease in
2021-09-20 14:01:33 +00:00
[/codeblock]
[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/ease_cheatsheet.png]ease() curve values cheatsheet[/url]
See also [method smoothstep]. If you need to perform more advanced transitions, use [Tween] or [AnimationPlayer].
2020-11-17 10:21:08 +00:00
</description>
</method>
2020-05-23 20:38:48 +00:00
<method name= "error_string" >
2021-08-11 17:46:29 +00:00
<return type= "String" />
<argument index= "0" name= "error" type= "int" />
2020-05-23 20:38:48 +00:00
<description >
Returns a human-readable name for the given error code.
</description>
</method>
2020-11-17 10:21:08 +00:00
<method name= "exp" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
The natural exponential function. It raises the mathematical constant [b]e[/b] to the power of [code]x[/code] and returns it.
[b]e[/b] has an approximate value of 2.71828, and can be obtained with [code]exp(1)[/code].
For exponents to other bases use the method [method pow].
[codeblock]
2021-09-28 14:33:43 +00:00
var a = exp(2) # Approximately 7.39
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "floor" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Rounds [code]x[/code] downward (towards negative infinity), returning the largest whole number that is not more than [code]x[/code].
[codeblock]
# a is 2.0
2021-09-28 14:33:43 +00:00
var a = floor(2.99)
2020-11-17 10:21:08 +00:00
# a is -3.0
a = floor(-2.99)
[/codeblock]
2020-12-21 18:02:57 +00:00
See also [method ceil], [method round], and [method snapped].
2020-11-17 10:21:08 +00:00
[b]Note:[/b] This method returns a float. If you need an integer, you can use [code]int(x)[/code] directly.
</description>
</method>
<method name= "fmod" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
<argument index= "1" name= "y" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the floating-point remainder of [code]x/y[/code], keeping the sign of [code]x[/code].
[codeblock]
# Remainder is 1.5
var remainder = fmod(7, 5.5)
[/codeblock]
For the integer remainder operation, use the [code]%[/code] operator.
</description>
</method>
<method name= "fposmod" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
<argument index= "1" name= "y" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the floating-point modulus of [code]x/y[/code] that wraps equally in positive and negative.
[codeblock]
for i in 7:
var x = 0.5 * i - 1.5
print("%4.1f %4.1f %4.1f" % [x, fmod(x, 1.5), fposmod(x, 1.5)])
[/codeblock]
Produces:
[codeblock]
-1.5 -0.0 0.0
-1.0 -1.0 0.5
-0.5 -0.5 1.0
0.0 0.0 0.0
0.5 0.5 0.5
1.0 1.0 1.0
1.5 0.0 0.0
[/codeblock]
</description>
</method>
<method name= "hash" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "variable" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Returns the integer hash of the variable passed.
[codeblock]
print(hash("a")) # Prints 177670
[/codeblock]
</description>
</method>
<method name= "instance_from_id" >
2021-07-30 13:28:05 +00:00
<return type= "Object" />
<argument index= "0" name= "instance_id" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Returns the Object that corresponds to [code]instance_id[/code]. All Objects have a unique instance ID.
[codeblock]
var foo = "bar"
func _ready():
var id = get_instance_id()
var inst = instance_from_id(id)
print(inst.foo) # Prints bar
[/codeblock]
</description>
</method>
<method name= "inverse_lerp" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "from" type= "float" />
<argument index= "1" name= "to" type= "float" />
<argument index= "2" name= "weight" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns a normalized value considering the given range. This is the opposite of [method lerp].
[codeblock]
var middle = lerp(20, 30, 0.75)
# `middle` is now 27.5.
# Now, we pretend to have forgotten the original ratio and want to get it back.
var ratio = inverse_lerp(20, 30, 27.5)
# `ratio` is now 0.75.
[/codeblock]
</description>
</method>
<method name= "is_equal_approx" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "a" type= "float" />
<argument index= "1" name= "b" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns [code]true[/code] if [code]a[/code] and [code]b[/code] are approximately equal to each other.
Here, approximately equal means that [code]a[/code] and [code]b[/code] are within a small internal epsilon of each other, which scales with the magnitude of the numbers.
Infinity values of the same sign are considered equal.
</description>
</method>
<method name= "is_inf" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns whether [code]x[/code] is an infinity value (either positive infinity or negative infinity).
</description>
</method>
<method name= "is_instance_id_valid" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
2021-11-06 14:17:54 +00:00
Returns [code]true[/code] if the Object that corresponds to [code]instance_id[/code] is a valid object (e.g. has not been deleted from memory). All Objects have a unique instance ID.
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "is_instance_valid" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "instance" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Returns whether [code]instance[/code] is a valid object (e.g. has not been deleted from memory).
</description>
</method>
<method name= "is_nan" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns whether [code]x[/code] is a NaN ("Not a Number" or invalid) value.
</description>
</method>
<method name= "is_zero_approx" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns [code]true[/code] if [code]x[/code] is zero or almost zero.
This method is faster than using [method is_equal_approx] with one value as zero.
</description>
</method>
<method name= "lerp" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "from" type= "float" />
<argument index= "1" name= "to" type= "float" />
<argument index= "2" name= "weight" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Linearly interpolates between two values by a normalized value. This is the opposite of [method inverse_lerp].
[codeblock]
lerp(0, 4, 0.75) # Returns 3.0
[/codeblock]
</description>
</method>
<method name= "lerp_angle" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "from" type= "float" />
<argument index= "1" name= "to" type= "float" />
<argument index= "2" name= "weight" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Linearly interpolates between two angles (in radians) by a normalized value.
Similar to [method lerp], but interpolates correctly when the angles wrap around [constant @GDScript.TAU].
[codeblock]
extends Sprite
var elapsed = 0.0
func _process(delta):
var min_angle = deg2rad(0.0)
var max_angle = deg2rad(90.0)
rotation = lerp_angle(min_angle, max_angle, elapsed)
elapsed += delta
[/codeblock]
</description>
</method>
<method name= "linear2db" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "lin" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Converts from linear energy to decibels (audio). This can be used to implement volume sliders that behave as expected (since volume isn't linear). Example:
[codeblock]
# "Slider" refers to a node that inherits Range such as HSlider or VSlider.
# Its range must be configured to go from 0 to 1.
# Change the bus name if you'd like to change the volume of a specific bus only.
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), linear2db($Slider.value))
[/codeblock]
</description>
</method>
<method name= "log" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Natural logarithm. The amount of time needed to reach a certain level of continuous growth.
[b]Note:[/b] This is not the same as the "log" function on most calculators, which uses a base 10 logarithm.
[codeblock]
log(10) # Returns 2.302585
[/codeblock]
[b]Note:[/b] The logarithm of [code]0[/code] returns [code]-inf[/code], while negative values return [code]-nan[/code].
</description>
</method>
<method name= "max" qualifiers= "vararg" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Returns the maximum of the given values. This method can take any number of arguments.
[codeblock]
max(1, 7, 3, -6, 5) # Returns 7
[/codeblock]
</description>
</method>
<method name= "maxf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "a" type= "float" />
<argument index= "1" name= "b" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the maximum of two float values.
[codeblock]
maxf(3.6, 24) # Returns 24.0
maxf(-3.99, -4) # Returns -3.99
[/codeblock]
</description>
</method>
<method name= "maxi" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "a" type= "int" />
<argument index= "1" name= "b" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Returns the maximum of two int values.
[codeblock]
maxi(1, 2) # Returns 2
maxi(-3, -4) # Returns -3
[/codeblock]
</description>
</method>
<method name= "min" qualifiers= "vararg" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Returns the minimum of the given values. This method can take any number of arguments.
[codeblock]
min(1, 7, 3, -6, 5) # Returns -6
[/codeblock]
</description>
</method>
<method name= "minf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "a" type= "float" />
<argument index= "1" name= "b" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the minimum of two float values.
[codeblock]
minf(3.6, 24) # Returns 3.6
minf(-3.99, -4) # Returns -4.0
[/codeblock]
</description>
</method>
<method name= "mini" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "a" type= "int" />
<argument index= "1" name= "b" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Returns the minimum of two int values.
[codeblock]
mini(1, 2) # Returns 1
mini(-3, -4) # Returns -4
[/codeblock]
</description>
</method>
<method name= "move_toward" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "from" type= "float" />
<argument index= "1" name= "to" type= "float" />
<argument index= "2" name= "delta" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Moves [code]from[/code] toward [code]to[/code] by the [code]delta[/code] value.
Use a negative [code]delta[/code] value to move away.
[codeblock]
move_toward(5, 10, 4) # Returns 9
move_toward(10, 5, 4) # Returns 6
move_toward(10, 5, -1.5) # Returns 11.5
[/codeblock]
</description>
</method>
<method name= "nearest_po2" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "value" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Returns the nearest equal or larger power of 2 for integer [code]value[/code].
In other words, returns the smallest value [code]a[/code] where [code]a = pow(2, n)[/code] such that [code]value < = a[/code] for some non-negative integer [code]n[/code].
[codeblock]
nearest_po2(3) # Returns 4
nearest_po2(4) # Returns 4
nearest_po2(5) # Returns 8
nearest_po2(0) # Returns 0 (this may not be what you expect)
nearest_po2(-1) # Returns 0 (this may not be what you expect)
[/codeblock]
2021-08-11 17:13:26 +00:00
[b]Warning:[/b] Due to the way it is implemented, this function returns [code]0[/code] rather than [code]1[/code] for non-positive values of [code]value[/code] (in reality, 1 is the smallest integer power of 2).
2020-11-17 10:21:08 +00:00
</description>
</method>
2021-10-15 13:25:00 +00:00
<method name= "pingpong" >
<return type= "float" />
<argument index= "0" name= "value" type= "float" />
<argument index= "1" name= "length" type= "float" />
<description >
Returns the [code]value[/code] wrapped between [code]0[/code] and the [code]length[/code]. If the limit is reached, the next value the function returned is decreased to the [code]0[/code] side or increased to the [code]length[/code] side (like a triangle wave). If [code]length[/code] is less than zero, it becomes positive.
[codeblock]
pingpong(-3.0, 3.0) # Returns 3
pingpong(-2.0, 3.0) # Returns 2
pingpong(-1.0, 3.0) # Returns 1
pingpong(0.0, 3.0) # Returns 0
pingpong(1.0, 3.0) # Returns 1
pingpong(2.0, 3.0) # Returns 2
pingpong(3.0, 3.0) # Returns 3
pingpong(4.0, 3.0) # Returns 2
pingpong(5.0, 3.0) # Returns 1
pingpong(6.0, 3.0) # Returns 0
[/codeblock]
</description>
</method>
2021-05-04 10:51:03 +00:00
<method name= "posmod" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "x" type= "int" />
<argument index= "1" name= "y" type= "int" />
2021-05-04 10:51:03 +00:00
<description >
Returns the integer modulus of [code]x/y[/code] that wraps equally in positive and negative.
[codeblock]
for i in range(-3, 4):
print("%2d %2d %2d" % [i, i % 3, posmod(i, 3)])
[/codeblock]
Produces:
[codeblock]
-3 0 0
-2 -2 1
-1 -1 2
0 0 0
1 1 1
2 2 2
3 0 0
[/codeblock]
</description>
</method>
2020-11-17 10:21:08 +00:00
<method name= "pow" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "base" type= "float" />
<argument index= "1" name= "exp" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the result of [code]base[/code] raised to the power of [code]exp[/code].
[codeblock]
pow(2, 5) # Returns 32
[/codeblock]
</description>
</method>
<method name= "print" qualifiers= "vararg" >
<description >
2021-01-04 23:29:04 +00:00
Converts one or more arguments of any type to string in the best way possible and prints them to the console.
2020-11-17 10:21:08 +00:00
[codeblock]
2021-09-28 14:33:43 +00:00
var a = [1, 2, 3]
2020-11-17 10:21:08 +00:00
print("a", "b", a) # Prints ab[1, 2, 3]
[/codeblock]
[b]Note:[/b] Consider using [method push_error] and [method push_warning] to print error and warning messages instead of [method print]. This distinguishes them from print messages used for debugging purposes, while also displaying a stack trace when an error or warning is printed.
</description>
</method>
2021-09-20 17:14:27 +00:00
<method name= "print_verbose" qualifiers= "vararg" >
<description >
If verbose mode is enabled ([method OS.is_stdout_verbose] returning [code]true[/code]), converts one or more arguments of any type to string in the best way possible and prints them to the console.
</description>
</method>
2020-11-17 10:21:08 +00:00
<method name= "printerr" qualifiers= "vararg" >
<description >
Prints one or more arguments to strings in the best way possible to standard error line.
[codeblock]
printerr("prints to stderr")
[/codeblock]
</description>
</method>
<method name= "printraw" qualifiers= "vararg" >
<description >
Prints one or more arguments to strings in the best way possible to console. No newline is added at the end.
[codeblock]
printraw("A")
printraw("B")
# Prints AB
[/codeblock]
[b]Note:[/b] Due to limitations with Godot's built-in console, this only prints to the terminal. If you need to print in the editor, use another method, such as [method print].
</description>
</method>
<method name= "prints" qualifiers= "vararg" >
<description >
Prints one or more arguments to the console with a space between each argument.
[codeblock]
prints("A", "B", "C") # Prints A B C
[/codeblock]
</description>
</method>
<method name= "printt" qualifiers= "vararg" >
<description >
Prints one or more arguments to the console with a tab between each argument.
[codeblock]
printt("A", "B", "C") # Prints A B C
[/codeblock]
</description>
</method>
<method name= "push_error" qualifiers= "vararg" >
<description >
Pushes an error message to Godot's built-in debugger and to the OS terminal.
[codeblock]
push_error("test error") # Prints "test error" to debugger and terminal as error call
[/codeblock]
[b]Note:[/b] Errors printed this way will not pause project execution. To print an error message and pause project execution in debug builds, use [code]assert(false, "test error")[/code] instead.
</description>
</method>
<method name= "push_warning" qualifiers= "vararg" >
<description >
Pushes a warning message to Godot's built-in debugger and to the OS terminal.
[codeblock]
push_warning("test warning") # Prints "test warning" to debugger and terminal as warning call
[/codeblock]
</description>
</method>
<method name= "rad2deg" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "rad" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Converts an angle expressed in radians to degrees.
[codeblock]
rad2deg(0.523599) # Returns 30
[/codeblock]
</description>
</method>
<method name= "rand_from_seed" >
2021-07-30 13:28:05 +00:00
<return type= "PackedInt64Array" />
<argument index= "0" name= "seed" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Random from seed: pass a [code]seed[/code], and an array with both number and new seed is returned. "Seed" here refers to the internal state of the pseudo random number generator. The internal state of the current implementation is 64 bits.
</description>
</method>
<method name= "randf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
2020-11-17 10:21:08 +00:00
<description >
2021-07-02 15:47:17 +00:00
Returns a random floating point value between [code]0.0[/code] and [code]1.0[/code] (inclusive).
2020-11-17 10:21:08 +00:00
[codeblock]
randf() # Returns e.g. 0.375671
[/codeblock]
</description>
</method>
<method name= "randf_range" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "from" type= "float" />
<argument index= "1" name= "to" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
2021-07-02 15:47:17 +00:00
Returns a random floating point value on the interval between [code]from[/code] and [code]to[/code] (inclusive).
2020-11-17 10:21:08 +00:00
[codeblock]
prints(randf_range(-10, 10), randf_range(-10, 10)) # Prints e.g. -3.844535 7.45315
[/codeblock]
</description>
</method>
2021-06-21 09:58:31 +00:00
<method name= "randfn" >
<return type= "float" />
<argument index= "0" name= "mean" type= "float" />
<argument index= "1" name= "deviation" type= "float" />
<description >
Returns a normally-distributed pseudo-random floating point value using Box-Muller transform with the specified [code]mean[/code] and a standard [code]deviation[/code]. This is also called Gaussian distribution.
</description>
</method>
2020-11-17 10:21:08 +00:00
<method name= "randi" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2020-11-17 10:21:08 +00:00
<description >
2021-03-18 11:04:28 +00:00
Returns a random unsigned 32-bit integer. Use remainder to obtain a random value in the interval [code][0, N - 1][/code] (where N is smaller than 2^32).
2020-11-17 10:21:08 +00:00
[codeblock]
randi() # Returns random integer between 0 and 2^32 - 1
randi() % 20 # Returns random integer between 0 and 19
randi() % 100 # Returns random integer between 0 and 99
randi() % 100 + 1 # Returns random integer between 1 and 100
[/codeblock]
</description>
</method>
<method name= "randi_range" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "from" type= "int" />
<argument index= "1" name= "to" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
2021-07-02 15:47:17 +00:00
Returns a random signed 32-bit integer between [code]from[/code] and [code]to[/code] (inclusive). If [code]to[/code] is lesser than [code]from[/code], they are swapped.
2020-11-17 10:21:08 +00:00
[codeblock]
print(randi_range(0, 1)) # Prints 0 or 1
print(randi_range(-10, 1000)) # Prints any number from -10 to 1000
[/codeblock]
</description>
</method>
<method name= "randomize" >
<description >
Randomizes the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.
2020-11-05 10:04:25 +00:00
[b]Note:[/b] This method is called automatically when the project is run. If you need to fix the seed to have reproducible results, use [method seed] to initialize the random number generator.
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "range_lerp" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "value" type= "float" />
<argument index= "1" name= "istart" type= "float" />
<argument index= "2" name= "istop" type= "float" />
<argument index= "3" name= "ostart" type= "float" />
<argument index= "4" name= "ostop" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Maps a [code]value[/code] from range [code][istart, istop][/code] to [code][ostart, ostop][/code].
[codeblock]
range_lerp(75, 0, 100, -1, 1) # Returns 0.5
[/codeblock]
</description>
</method>
<method name= "range_step_decimals" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
</description>
</method>
2021-08-23 23:57:52 +00:00
<method name= "rid_allocate_id" >
<return type= "int" />
<description >
Allocate a unique ID which can be used by the implementation to construct a RID. This is used mainly from native extensions to implement servers.
</description>
</method>
<method name= "rid_from_int64" >
<return type= "RID" />
<argument index= "0" name= "base" type= "int" />
<description >
Create a RID from an int64. This is used mainly from native extensions to build servers.
</description>
</method>
2020-11-17 10:21:08 +00:00
<method name= "round" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Rounds [code]x[/code] to the nearest whole number, with halfway cases rounded away from zero.
[codeblock]
round(2.6) # Returns 3
[/codeblock]
2020-12-21 18:02:57 +00:00
See also [method floor], [method ceil], and [method snapped].
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "seed" >
2021-07-30 13:28:05 +00:00
<argument index= "0" name= "base" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Sets seed for the random number generator.
[codeblock]
2021-09-28 14:33:43 +00:00
var my_seed = "Godot Rocks"
2020-11-17 10:21:08 +00:00
seed(my_seed.hash())
[/codeblock]
</description>
</method>
<method name= "sign" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "x" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
2021-11-06 14:17:54 +00:00
Returns the sign of [code]x[/code] as same type of [Variant] as [code]x[/code] with each component being -1, 0 and 1 for each negative, zero and positive values respectivelu. Variant types [int], [float] (real), [Vector2], [Vector2i], [Vector3] and [Vector3i] are supported.
[codeblock]
sign(-6.0) # Returns -1
sign(0.0) # Returns 0
sign(6.0) # Returns 1
sign(Vector3(-6.0, 0.0, 6.0) # Returns (-1, 0, 1)
[/codeblock]
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "signf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the sign of [code]x[/code] as a float: -1.0 or 1.0. Returns 0.0 if [code]x[/code] is 0.
[codeblock]
sign(-6.0) # Returns -1.0
sign(0.0) # Returns 0.0
sign(6.0) # Returns 1.0
[/codeblock]
</description>
</method>
<method name= "signi" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "x" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Returns the sign of [code]x[/code] as an integer: -1 or 1. Returns 0 if [code]x[/code] is 0.
[codeblock]
sign(-6) # Returns -1
sign(0) # Returns 0
sign(6) # Returns 1
[/codeblock]
</description>
</method>
<method name= "sin" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "angle_rad" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the sine of angle [code]angle_rad[/code] in radians.
[codeblock]
2021-09-28 14:33:43 +00:00
sin(0.523599) # Returns 0.5
sin(deg2rad(90)) # Returns 1.0
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "sinh" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the hyperbolic sine of [code]x[/code].
[codeblock]
2021-09-28 14:33:43 +00:00
var a = log(2.0) # Returns 0.693147
2020-11-17 10:21:08 +00:00
sinh(a) # Returns 0.75
[/codeblock]
</description>
</method>
<method name= "smoothstep" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "from" type= "float" />
<argument index= "1" name= "to" type= "float" />
<argument index= "2" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the result of smoothly interpolating the value of [code]x[/code] between [code]0[/code] and [code]1[/code], based on the where [code]x[/code] lies with respect to the edges [code]from[/code] and [code]to[/code].
The return value is [code]0[/code] if [code]x < = from[/code], and [code]1[/code] if [code]x > = to[/code]. If [code]x[/code] lies between [code]from[/code] and [code]to[/code], the returned value follows an S-shaped curve that maps [code]x[/code] between [code]0[/code] and [code]1[/code].
2021-02-12 20:42:58 +00:00
This S-shaped curve is the cubic Hermite interpolator, given by [code]f(y) = 3*y^2 - 2*y^3[/code] where [code]y = (x-from) / (to-from)[/code].
2020-11-17 10:21:08 +00:00
[codeblock]
smoothstep(0, 2, -5.0) # Returns 0.0
smoothstep(0, 2, 0.5) # Returns 0.15625
smoothstep(0, 2, 1.0) # Returns 0.5
smoothstep(0, 2, 2.0) # Returns 1.0
[/codeblock]
2021-09-20 14:01:33 +00:00
Compared to [method ease] with a curve value of [code]-1.6521[/code], [method smoothstep] returns the smoothest possible curve with no sudden changes in the derivative. If you need to perform more advanced transitions, use [Tween] or [AnimationPlayer].
[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/smoothstep_ease_comparison.png]Comparison between smoothstep() and ease(x, -1.6521) return values[/url]
2020-11-17 10:21:08 +00:00
</description>
</method>
2021-01-04 13:33:44 +00:00
<method name= "snapped" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
<argument index= "1" name= "step" type= "float" />
2021-01-04 13:33:44 +00:00
<description >
Snaps float value [code]x[/code] to a given [code]step[/code]. This can also be used to round a floating point number to an arbitrary number of decimals.
[codeblock]
snapped(100, 32) # Returns 96
snapped(3.14159, 0.01) # Returns 3.14
[/codeblock]
See also [method ceil], [method floor], and [method round].
</description>
</method>
2020-11-17 10:21:08 +00:00
<method name= "sqrt" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the square root of [code]x[/code], where [code]x[/code] is a non-negative number.
[codeblock]
sqrt(9) # Returns 3
[/codeblock]
2021-10-05 12:24:34 +00:00
[b]Note:[/b] Negative values of [code]x[/code] return NaN. If you need negative inputs, use [code]System.Numerics.Complex[/code] in C#.
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "step_decimals" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the position of the first non-zero digit, after the decimal point. Note that the maximum return value is 10, which is a design decision in the implementation.
[codeblock]
# n is 0
2021-09-28 14:33:43 +00:00
var n = step_decimals(5)
2020-11-17 10:21:08 +00:00
# n is 4
n = step_decimals(1.0005)
# n is 9
n = step_decimals(0.000000005)
[/codeblock]
</description>
</method>
<method name= "str" qualifiers= "vararg" >
2021-07-30 13:28:05 +00:00
<return type= "String" />
2020-11-17 10:21:08 +00:00
<description >
2021-01-04 23:29:04 +00:00
Converts one or more arguments of any type to string in the best way possible.
2020-11-17 10:21:08 +00:00
</description>
</method>
<method name= "str2var" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "string" type= "String" />
2020-11-17 10:21:08 +00:00
<description >
Converts a formatted string that was returned by [method var2str] to the original value.
[codeblock]
2021-09-28 14:33:43 +00:00
var a = '{ "a": 1, "b": 2 }'
var b = str2var(a)
2020-11-17 10:21:08 +00:00
print(b["a"]) # Prints 1
[/codeblock]
</description>
</method>
<method name= "tan" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "angle_rad" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the tangent of angle [code]angle_rad[/code] in radians.
[codeblock]
tan(deg2rad(45)) # Returns 1
[/codeblock]
</description>
</method>
<method name= "tanh" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "x" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Returns the hyperbolic tangent of [code]x[/code].
[codeblock]
2021-09-28 14:33:43 +00:00
var a = log(2.0) # Returns 0.693147
2020-11-17 10:21:08 +00:00
tanh(a) # Returns 0.6
[/codeblock]
</description>
</method>
<method name= "typeof" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "variable" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Returns the internal type of the given Variant object, using the [enum Variant.Type] values.
[codeblock]
2020-12-29 18:12:33 +00:00
var json = JSON.new()
json.parse('["a", "b", "c"]')
var result = json.get_data()
if typeof(result) == TYPE_ARRAY:
print(result[0]) # Prints a
2020-11-17 10:21:08 +00:00
else:
2020-12-29 18:12:33 +00:00
print("Unexpected result")
2020-11-17 10:21:08 +00:00
[/codeblock]
</description>
</method>
<method name= "var2bytes" >
2021-07-30 13:28:05 +00:00
<return type= "PackedByteArray" />
<argument index= "0" name= "variable" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Encodes a [Variant] value to a byte array, without encoding objects. Deserialization can be done with [method bytes2var].
[b]Note:[/b] If you need object serialization, see [method var2bytes_with_objects].
</description>
</method>
<method name= "var2bytes_with_objects" >
2021-07-30 13:28:05 +00:00
<return type= "PackedByteArray" />
<argument index= "0" name= "variable" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Encodes a [Variant] value to a byte array. Encoding objects is allowed (and can potentially include code). Deserialization can be done with [method bytes2var_with_objects].
</description>
</method>
<method name= "var2str" >
2021-07-30 13:28:05 +00:00
<return type= "String" />
<argument index= "0" name= "variable" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Converts a Variant [code]variable[/code] to a formatted string that can later be parsed using [method str2var].
[codeblock]
a = { "a": 1, "b": 2 }
print(var2str(a))
[/codeblock]
prints
[codeblock]
{
"a": 1,
"b": 2
}
[/codeblock]
</description>
</method>
<method name= "weakref" >
2021-07-30 13:28:05 +00:00
<return type= "Variant" />
<argument index= "0" name= "obj" type= "Variant" />
2020-11-17 10:21:08 +00:00
<description >
Returns a weak reference to an object, or [code]null[/code] is the argument is invalid.
A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references, garbage collection is free to destroy the referent and reuse its memory for something else. However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it.
</description>
</method>
<method name= "wrapf" >
2021-07-30 13:28:05 +00:00
<return type= "float" />
<argument index= "0" name= "value" type= "float" />
<argument index= "1" name= "min" type= "float" />
<argument index= "2" name= "max" type= "float" />
2020-11-17 10:21:08 +00:00
<description >
Wraps float [code]value[/code] between [code]min[/code] and [code]max[/code].
Usable for creating loop-alike behavior or infinite surfaces.
[codeblock]
# Infinite loop between 5.0 and 9.9
value = wrapf(value + 0.1, 5.0, 10.0)
[/codeblock]
[codeblock]
# Infinite rotation (in radians)
angle = wrapf(angle + 0.1, 0.0, TAU)
[/codeblock]
[codeblock]
# Infinite rotation (in radians)
angle = wrapf(angle + 0.1, -PI, PI)
[/codeblock]
[b]Note:[/b] If [code]min[/code] is [code]0[/code], this is equivalent to [method fposmod], so prefer using that instead.
[code]wrapf[/code] is more flexible than using the [method fposmod] approach by giving the user control over the minimum value.
</description>
</method>
<method name= "wrapi" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "value" type= "int" />
<argument index= "1" name= "min" type= "int" />
<argument index= "2" name= "max" type= "int" />
2020-11-17 10:21:08 +00:00
<description >
Wraps integer [code]value[/code] between [code]min[/code] and [code]max[/code].
Usable for creating loop-alike behavior or infinite surfaces.
[codeblock]
# Infinite loop between 5 and 9
frame = wrapi(frame + 1, 5, 10)
[/codeblock]
[codeblock]
# result is -2
var result = wrapi(-6, -5, -1)
[/codeblock]
</description>
</method>
2017-09-12 20:42:36 +00:00
</methods>
<members >
2017-09-13 06:49:40 +00:00
<member name= "AudioServer" type= "AudioServer" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [AudioServer] singleton.
2017-09-12 20:42:36 +00:00
</member>
2017-08-20 14:17:24 +00:00
<member name= "CameraServer" type= "CameraServer" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [CameraServer] singleton.
2017-08-20 14:17:24 +00:00
</member>
2017-09-13 06:49:40 +00:00
<member name= "ClassDB" type= "ClassDB" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [ClassDB] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-04-24 15:43:10 +00:00
<member name= "DisplayServer" type= "DisplayServer" setter= "" getter= "" >
The [DisplayServer] singleton.
</member>
2017-09-13 06:49:40 +00:00
<member name= "Engine" type= "Engine" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [Engine] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-05-18 14:55:49 +00:00
<member name= "EngineDebugger" type= "EngineDebugger" setter= "" getter= "" >
The [EngineDebugger] singleton.
</member>
2020-05-25 17:20:45 +00:00
<member name= "Geometry2D" type= "Geometry2D" setter= "" getter= "" >
The [Geometry2D] singleton.
</member>
<member name= "Geometry3D" type= "Geometry3D" setter= "" getter= "" >
The [Geometry3D] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-06-17 13:06:13 +00:00
<member name= "GodotSharp" type= "GodotSharp" setter= "" getter= "" >
The [GodotSharp] singleton.
</member>
2017-09-13 06:49:40 +00:00
<member name= "IP" type= "IP" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [IP] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-04-28 13:19:37 +00:00
<member name= "Input" type= "Input" setter= "" getter= "" >
The [Input] singleton.
2017-09-12 20:42:36 +00:00
</member>
2017-09-13 06:49:40 +00:00
<member name= "InputMap" type= "InputMap" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [InputMap] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-01-19 22:19:21 +00:00
<member name= "JavaClassWrapper" type= "JavaClassWrapper" setter= "" getter= "" >
The [JavaClassWrapper] singleton.
[b]Note:[/b] Only implemented on Android.
</member>
2017-11-16 00:33:48 +00:00
<member name= "JavaScript" type= "JavaScript" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [JavaScript] singleton.
2020-01-19 22:19:21 +00:00
[b]Note:[/b] Only implemented on HTML5.
2017-11-16 00:33:48 +00:00
</member>
2020-02-24 12:56:22 +00:00
<member name= "Marshalls" type= "Marshalls" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [Marshalls] singleton.
2017-09-12 20:42:36 +00:00
</member>
2021-06-19 15:58:49 +00:00
<member name= "NativeExtensionManager" type= "NativeExtensionManager" setter= "" getter= "" >
</member>
2020-02-12 08:59:06 +00:00
<member name= "NavigationMeshGenerator" type= "NavigationMeshGenerator" setter= "" getter= "" >
The [NavigationMeshGenerator] singleton.
</member>
2020-03-30 16:22:57 +00:00
<member name= "NavigationServer2D" type= "NavigationServer2D" setter= "" getter= "" >
The [NavigationServer2D] singleton.
</member>
<member name= "NavigationServer3D" type= "NavigationServer3D" setter= "" getter= "" >
The [NavigationServer2D] singleton.
2019-05-28 16:08:13 +00:00
</member>
2017-09-13 06:49:40 +00:00
<member name= "OS" type= "OS" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [OS] singleton.
2017-09-12 20:42:36 +00:00
</member>
2017-09-13 06:49:40 +00:00
<member name= "Performance" type= "Performance" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [Performance] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-03-30 16:22:57 +00:00
<member name= "PhysicsServer2D" type= "PhysicsServer2D" setter= "" getter= "" >
The [PhysicsServer2D] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-03-30 16:22:57 +00:00
<member name= "PhysicsServer3D" type= "PhysicsServer3D" setter= "" getter= "" >
The [PhysicsServer3D] singleton.
2017-09-12 20:42:36 +00:00
</member>
2017-09-13 06:49:40 +00:00
<member name= "ProjectSettings" type= "ProjectSettings" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [ProjectSettings] singleton.
2017-09-12 20:42:36 +00:00
</member>
2020-03-30 16:22:57 +00:00
<member name= "RenderingServer" type= "RenderingServer" setter= "" getter= "" >
The [RenderingServer] singleton.
</member>
2017-09-13 06:49:40 +00:00
<member name= "ResourceLoader" type= "ResourceLoader" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [ResourceLoader] singleton.
2017-09-12 20:42:36 +00:00
</member>
2017-09-13 06:49:40 +00:00
<member name= "ResourceSaver" type= "ResourceSaver" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [ResourceSaver] singleton.
2017-09-12 20:42:36 +00:00
</member>
2021-07-23 19:01:18 +00:00
<member name= "ResourceUID" type= "ResourceUID" setter= "" getter= "" >
</member>
2020-08-12 11:49:10 +00:00
<member name= "TextServerManager" type= "TextServerManager" setter= "" getter= "" >
The [TextServerManager] singleton.
</member>
2021-05-24 11:54:05 +00:00
<member name= "Time" type= "Time" setter= "" getter= "" >
The [Time] singleton.
</member>
2017-09-13 06:49:40 +00:00
<member name= "TranslationServer" type= "TranslationServer" setter= "" getter= "" >
2019-06-21 23:04:47 +00:00
The [TranslationServer] singleton.
2017-09-12 20:42:36 +00:00
</member>
2021-09-14 09:31:01 +00:00
<member name= "VisualScriptCustomNodes" type= "VisualScriptCustomNodes" setter= "" getter= "" >
2021-08-23 16:15:50 +00:00
The [VisualScriptCustomNodes] singleton.
2017-11-24 08:16:27 +00:00
</member>
2020-04-20 09:48:00 +00:00
<member name= "XRServer" type= "XRServer" setter= "" getter= "" >
The [XRServer] singleton.
</member>
2017-09-12 20:42:36 +00:00
</members>
<constants >
2020-12-22 16:24:29 +00:00
<constant name= "SIDE_LEFT" value= "0" enum= "Side" >
Left side, usually used for [Control] or [StyleBox]-derived classes.
2017-09-12 20:42:36 +00:00
</constant>
2020-12-22 16:24:29 +00:00
<constant name= "SIDE_TOP" value= "1" enum= "Side" >
Top side, usually used for [Control] or [StyleBox]-derived classes.
2017-09-12 20:42:36 +00:00
</constant>
2020-12-22 16:24:29 +00:00
<constant name= "SIDE_RIGHT" value= "2" enum= "Side" >
Right side, usually used for [Control] or [StyleBox]-derived classes.
2017-09-12 20:42:36 +00:00
</constant>
2020-12-22 16:24:29 +00:00
<constant name= "SIDE_BOTTOM" value= "3" enum= "Side" >
Bottom side, usually used for [Control] or [StyleBox]-derived classes.
2017-09-12 20:42:36 +00:00
</constant>
2018-01-03 12:45:03 +00:00
<constant name= "CORNER_TOP_LEFT" value= "0" enum= "Corner" >
2019-06-21 23:04:47 +00:00
Top-left corner.
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "CORNER_TOP_RIGHT" value= "1" enum= "Corner" >
2019-06-21 23:04:47 +00:00
Top-right corner.
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "CORNER_BOTTOM_RIGHT" value= "2" enum= "Corner" >
2019-06-21 23:04:47 +00:00
Bottom-right corner.
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "CORNER_BOTTOM_LEFT" value= "3" enum= "Corner" >
2019-06-21 23:04:47 +00:00
Bottom-left corner.
2018-01-03 12:45:03 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "VERTICAL" value= "1" enum= "Orientation" >
2019-06-21 23:04:47 +00:00
General vertical alignment, usually used for [Separator], [ScrollBar], [Slider], etc.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "HORIZONTAL" value= "0" enum= "Orientation" >
2019-06-21 23:04:47 +00:00
General horizontal alignment, usually used for [Separator], [ScrollBar], [Slider], etc.
2017-09-12 20:42:36 +00:00
</constant>
2021-03-10 09:54:21 +00:00
<constant name= "CLOCKWISE" value= "0" enum= "ClockDirection" >
</constant>
<constant name= "COUNTERCLOCKWISE" value= "1" enum= "ClockDirection" >
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "HALIGN_LEFT" value= "0" enum= "HAlign" >
2017-09-12 20:42:36 +00:00
Horizontal left alignment, usually for text-derived classes.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "HALIGN_CENTER" value= "1" enum= "HAlign" >
2017-09-12 20:42:36 +00:00
Horizontal center alignment, usually for text-derived classes.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "HALIGN_RIGHT" value= "2" enum= "HAlign" >
2017-09-12 20:42:36 +00:00
Horizontal right alignment, usually for text-derived classes.
</constant>
2020-08-12 11:49:10 +00:00
<constant name= "HALIGN_FILL" value= "3" enum= "HAlign" >
Expand row to fit width, usually for text-derived classes.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "VALIGN_TOP" value= "0" enum= "VAlign" >
2017-09-12 20:42:36 +00:00
Vertical top alignment, usually for text-derived classes.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "VALIGN_CENTER" value= "1" enum= "VAlign" >
2017-09-12 20:42:36 +00:00
Vertical center alignment, usually for text-derived classes.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "VALIGN_BOTTOM" value= "2" enum= "VAlign" >
2017-09-12 20:42:36 +00:00
Vertical bottom alignment, usually for text-derived classes.
</constant>
2021-06-14 07:11:37 +00:00
<constant name= "INLINE_ALIGN_TOP_TO" value= "0" enum= "InlineAlign" >
Aligns the top of the inline object (e.g. image, table) to the position of the text specified by [code]INLINE_ALIGN_TO_*[/code] constant.
</constant>
<constant name= "INLINE_ALIGN_CENTER_TO" value= "1" enum= "InlineAlign" >
Aligns the center of the inline object (e.g. image, table) to the position of the text specified by [code]INLINE_ALIGN_TO_*[/code] constant.
</constant>
<constant name= "INLINE_ALIGN_BOTTOM_TO" value= "2" enum= "InlineAlign" >
Aligns the bottom of the inline object (e.g. image, table) to the position of the text specified by [code]INLINE_ALIGN_TO_*[/code] constant.
</constant>
<constant name= "INLINE_ALIGN_TO_TOP" value= "0" enum= "InlineAlign" >
Aligns the position of the inline object (e.g. image, table) specified by [code]INLINE_ALIGN_*_TO[/code] constant to the top of the text.
</constant>
<constant name= "INLINE_ALIGN_TO_CENTER" value= "4" enum= "InlineAlign" >
Aligns the position of the inline object (e.g. image, table) specified by [code]INLINE_ALIGN_*_TO[/code] constant to the center of the text.
</constant>
<constant name= "INLINE_ALIGN_TO_BASELINE" value= "8" enum= "InlineAlign" >
Aligns the position of the inline object (e.g. image, table) specified by [code]INLINE_ALIGN_*_TO[/code] constant to the baseline of the text.
</constant>
<constant name= "INLINE_ALIGN_TO_BOTTOM" value= "12" enum= "InlineAlign" >
Aligns inline object (e.g. image, table) to the bottom of the text.
</constant>
<constant name= "INLINE_ALIGN_TOP" value= "0" enum= "InlineAlign" >
Aligns top of the inline object (e.g. image, table) to the top of the text. Equvalent to [code]INLINE_ALIGN_TOP_TO | INLINE_ALIGN_TO_TOP[/code].
</constant>
<constant name= "INLINE_ALIGN_CENTER" value= "5" enum= "InlineAlign" >
Aligns center of the inline object (e.g. image, table) to the center of the text. Equvalent to [code]INLINE_ALIGN_CENTER_TO | INLINE_ALIGN_TO_CENTER[/code].
</constant>
<constant name= "INLINE_ALIGN_BOTTOM" value= "14" enum= "InlineAlign" >
Aligns bottom of the inline object (e.g. image, table) to the bottom of the text. Equvalent to [code]INLINE_ALIGN_BOTTOM_TO | INLINE_ALIGN_TO_BOTTOM[/code].
</constant>
2021-08-13 21:31:57 +00:00
<constant name= "KEY_SPECIAL" value= "16777216" enum= "Key" >
2018-04-05 17:59:35 +00:00
Keycodes with this bit applied are non-printable.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ESCAPE" value= "16777217" enum= "Key" >
2019-06-21 23:04:47 +00:00
Escape key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_TAB" value= "16777218" enum= "Key" >
2019-06-21 23:04:47 +00:00
Tab key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BACKTAB" value= "16777219" enum= "Key" >
2020-03-10 10:41:36 +00:00
Shift + Tab key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BACKSPACE" value= "16777220" enum= "Key" >
2019-06-21 23:04:47 +00:00
Backspace key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ENTER" value= "16777221" enum= "Key" >
2019-06-21 23:04:47 +00:00
Return key (on the main keyboard).
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_ENTER" value= "16777222" enum= "Key" >
2019-06-21 23:04:47 +00:00
Enter key on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_INSERT" value= "16777223" enum= "Key" >
2019-06-21 23:04:47 +00:00
Insert key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DELETE" value= "16777224" enum= "Key" >
2019-06-21 23:04:47 +00:00
Delete key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PAUSE" value= "16777225" enum= "Key" >
2019-06-21 23:04:47 +00:00
Pause key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PRINT" value= "16777226" enum= "Key" >
2019-06-21 23:04:47 +00:00
Print Screen key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SYSREQ" value= "16777227" enum= "Key" >
2019-06-21 23:04:47 +00:00
System Request key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_CLEAR" value= "16777228" enum= "Key" >
2019-06-21 23:04:47 +00:00
Clear key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_HOME" value= "16777229" enum= "Key" >
2019-06-21 23:04:47 +00:00
Home key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_END" value= "16777230" enum= "Key" >
2019-06-21 23:04:47 +00:00
End key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LEFT" value= "16777231" enum= "Key" >
2019-06-21 23:04:47 +00:00
Left arrow key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UP" value= "16777232" enum= "Key" >
2019-06-21 23:04:47 +00:00
Up arrow key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_RIGHT" value= "16777233" enum= "Key" >
2019-06-21 23:04:47 +00:00
Right arrow key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DOWN" value= "16777234" enum= "Key" >
2019-06-21 23:04:47 +00:00
Down arrow key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PAGEUP" value= "16777235" enum= "Key" >
2019-06-21 23:04:47 +00:00
Page Up key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PAGEDOWN" value= "16777236" enum= "Key" >
2019-06-21 23:04:47 +00:00
Page Down key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SHIFT" value= "16777237" enum= "Key" >
2019-06-21 23:04:47 +00:00
Shift key.
2017-09-12 20:42:36 +00:00
</constant>
2021-04-24 20:33:50 +00:00
<constant name= "KEY_CTRL" value= "16777238" enum= "Key" >
2019-06-21 23:04:47 +00:00
Control key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_META" value= "16777239" enum= "Key" >
2019-06-21 23:04:47 +00:00
Meta key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ALT" value= "16777240" enum= "Key" >
2019-06-21 23:04:47 +00:00
Alt key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_CAPSLOCK" value= "16777241" enum= "Key" >
2019-06-21 23:04:47 +00:00
Caps Lock key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_NUMLOCK" value= "16777242" enum= "Key" >
2019-06-21 23:04:47 +00:00
Num Lock key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SCROLLLOCK" value= "16777243" enum= "Key" >
2019-06-21 23:04:47 +00:00
Scroll Lock key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F1" value= "16777244" enum= "Key" >
2019-06-21 23:04:47 +00:00
F1 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F2" value= "16777245" enum= "Key" >
2019-06-21 23:04:47 +00:00
F2 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F3" value= "16777246" enum= "Key" >
2019-06-21 23:04:47 +00:00
F3 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F4" value= "16777247" enum= "Key" >
2019-06-21 23:04:47 +00:00
F4 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F5" value= "16777248" enum= "Key" >
2019-06-21 23:04:47 +00:00
F5 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F6" value= "16777249" enum= "Key" >
2019-06-21 23:04:47 +00:00
F6 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F7" value= "16777250" enum= "Key" >
2019-06-21 23:04:47 +00:00
F7 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F8" value= "16777251" enum= "Key" >
2019-06-21 23:04:47 +00:00
F8 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F9" value= "16777252" enum= "Key" >
2019-06-21 23:04:47 +00:00
F9 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F10" value= "16777253" enum= "Key" >
2019-06-21 23:04:47 +00:00
F10 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F11" value= "16777254" enum= "Key" >
2019-06-21 23:04:47 +00:00
F11 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F12" value= "16777255" enum= "Key" >
2019-06-21 23:04:47 +00:00
F12 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F13" value= "16777256" enum= "Key" >
2019-06-21 23:04:47 +00:00
F13 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F14" value= "16777257" enum= "Key" >
2019-06-21 23:04:47 +00:00
F14 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F15" value= "16777258" enum= "Key" >
2019-06-21 23:04:47 +00:00
F15 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F16" value= "16777259" enum= "Key" >
2019-06-21 23:04:47 +00:00
F16 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_MULTIPLY" value= "16777345" enum= "Key" >
2019-06-21 23:04:47 +00:00
Multiply (*) key on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_DIVIDE" value= "16777346" enum= "Key" >
2019-06-21 23:04:47 +00:00
Divide (/) key on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_SUBTRACT" value= "16777347" enum= "Key" >
2019-06-21 23:04:47 +00:00
Subtract (-) key on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_PERIOD" value= "16777348" enum= "Key" >
2019-06-21 23:04:47 +00:00
Period (.) key on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_ADD" value= "16777349" enum= "Key" >
2019-06-21 23:04:47 +00:00
Add (+) key on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_0" value= "16777350" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 0 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_1" value= "16777351" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 1 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_2" value= "16777352" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 2 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_3" value= "16777353" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 3 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_4" value= "16777354" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 4 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_5" value= "16777355" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 5 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_6" value= "16777356" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 6 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_7" value= "16777357" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 7 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_8" value= "16777358" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 8 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_KP_9" value= "16777359" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 9 on the numeric keypad.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SUPER_L" value= "16777260" enum= "Key" >
2019-06-21 23:04:47 +00:00
Left Super key (Windows key).
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SUPER_R" value= "16777261" enum= "Key" >
2019-06-21 23:04:47 +00:00
Right Super key (Windows key).
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MENU" value= "16777262" enum= "Key" >
2019-06-21 23:04:47 +00:00
Context menu key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_HYPER_L" value= "16777263" enum= "Key" >
2019-06-21 23:04:47 +00:00
Left Hyper key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_HYPER_R" value= "16777264" enum= "Key" >
2019-06-21 23:04:47 +00:00
Right Hyper key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_HELP" value= "16777265" enum= "Key" >
2019-06-21 23:04:47 +00:00
Help key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DIRECTION_L" value= "16777266" enum= "Key" >
2019-06-21 23:04:47 +00:00
Left Direction key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DIRECTION_R" value= "16777267" enum= "Key" >
2019-06-21 23:04:47 +00:00
Right Direction key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BACK" value= "16777280" enum= "Key" >
2020-08-28 15:10:08 +00:00
Media back key. Not to be confused with the Back button on an Android device.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_FORWARD" value= "16777281" enum= "Key" >
2020-08-28 15:10:08 +00:00
Media forward key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_STOP" value= "16777282" enum= "Key" >
2020-08-28 15:10:08 +00:00
Media stop key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_REFRESH" value= "16777283" enum= "Key" >
2020-08-28 15:10:08 +00:00
Media refresh key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_VOLUMEDOWN" value= "16777284" enum= "Key" >
2019-06-21 23:04:47 +00:00
Volume down key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_VOLUMEMUTE" value= "16777285" enum= "Key" >
2019-06-21 23:04:47 +00:00
Mute volume key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_VOLUMEUP" value= "16777286" enum= "Key" >
2019-06-21 23:04:47 +00:00
Volume up key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BASSBOOST" value= "16777287" enum= "Key" >
2019-06-21 23:04:47 +00:00
Bass Boost key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BASSUP" value= "16777288" enum= "Key" >
2019-06-21 23:04:47 +00:00
Bass up key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BASSDOWN" value= "16777289" enum= "Key" >
2019-06-21 23:04:47 +00:00
Bass down key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_TREBLEUP" value= "16777290" enum= "Key" >
2019-06-21 23:04:47 +00:00
Treble up key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_TREBLEDOWN" value= "16777291" enum= "Key" >
2019-06-21 23:04:47 +00:00
Treble down key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MEDIAPLAY" value= "16777292" enum= "Key" >
2019-06-21 23:04:47 +00:00
Media play key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MEDIASTOP" value= "16777293" enum= "Key" >
2019-06-21 23:04:47 +00:00
Media stop key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MEDIAPREVIOUS" value= "16777294" enum= "Key" >
2019-06-21 23:04:47 +00:00
Previous song key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MEDIANEXT" value= "16777295" enum= "Key" >
2019-06-21 23:04:47 +00:00
Next song key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MEDIARECORD" value= "16777296" enum= "Key" >
2019-06-21 23:04:47 +00:00
Media record key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_HOMEPAGE" value= "16777297" enum= "Key" >
2019-06-21 23:04:47 +00:00
Home page key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_FAVORITES" value= "16777298" enum= "Key" >
2019-06-21 23:04:47 +00:00
Favorites key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SEARCH" value= "16777299" enum= "Key" >
2019-06-21 23:04:47 +00:00
Search key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_STANDBY" value= "16777300" enum= "Key" >
2019-06-21 23:04:47 +00:00
Standby key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_OPENURL" value= "16777301" enum= "Key" >
2019-06-21 23:04:47 +00:00
Open URL / Launch Browser key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHMAIL" value= "16777302" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Mail key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHMEDIA" value= "16777303" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Media key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH0" value= "16777304" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 0 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH1" value= "16777305" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 1 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH2" value= "16777306" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 2 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH3" value= "16777307" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 3 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH4" value= "16777308" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 4 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH5" value= "16777309" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 5 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH6" value= "16777310" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 6 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH7" value= "16777311" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 7 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH8" value= "16777312" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 8 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCH9" value= "16777313" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut 9 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHA" value= "16777314" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut A key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHB" value= "16777315" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut B key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHC" value= "16777316" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut C key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHD" value= "16777317" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut D key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHE" value= "16777318" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut E key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LAUNCHF" value= "16777319" enum= "Key" >
2019-06-21 23:04:47 +00:00
Launch Shortcut F key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UNKNOWN" value= "33554431" enum= "Key" >
2019-06-21 23:04:47 +00:00
Unknown key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SPACE" value= "32" enum= "Key" >
2019-06-21 23:04:47 +00:00
Space key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_EXCLAM" value= "33" enum= "Key" >
2019-06-21 23:04:47 +00:00
! key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_QUOTEDBL" value= "34" enum= "Key" >
2019-06-21 23:04:47 +00:00
" key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_NUMBERSIGN" value= "35" enum= "Key" >
2019-06-21 23:04:47 +00:00
# key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DOLLAR" value= "36" enum= "Key" >
2019-06-21 23:04:47 +00:00
$ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PERCENT" value= "37" enum= "Key" >
2019-06-21 23:04:47 +00:00
% key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_AMPERSAND" value= "38" enum= "Key" >
2019-06-21 23:04:47 +00:00
& key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_APOSTROPHE" value= "39" enum= "Key" >
2019-06-21 23:04:47 +00:00
' key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PARENLEFT" value= "40" enum= "Key" >
2019-06-21 23:04:47 +00:00
( key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PARENRIGHT" value= "41" enum= "Key" >
2019-06-21 23:04:47 +00:00
) key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ASTERISK" value= "42" enum= "Key" >
2019-06-21 23:04:47 +00:00
* key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PLUS" value= "43" enum= "Key" >
2019-06-21 23:04:47 +00:00
+ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_COMMA" value= "44" enum= "Key" >
2019-06-21 23:04:47 +00:00
, key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MINUS" value= "45" enum= "Key" >
2019-06-21 23:04:47 +00:00
- key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PERIOD" value= "46" enum= "Key" >
2019-06-21 23:04:47 +00:00
. key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SLASH" value= "47" enum= "Key" >
2019-06-21 23:04:47 +00:00
/ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_0" value= "48" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 0.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_1" value= "49" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 1.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_2" value= "50" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 2.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_3" value= "51" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 3.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_4" value= "52" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 4.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_5" value= "53" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 5.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_6" value= "54" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 6.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_7" value= "55" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 7.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_8" value= "56" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 8.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_9" value= "57" enum= "Key" >
2019-06-21 23:04:47 +00:00
Number 9.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_COLON" value= "58" enum= "Key" >
2019-06-21 23:04:47 +00:00
: key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SEMICOLON" value= "59" enum= "Key" >
2019-06-21 23:04:47 +00:00
; key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_LESS" value= "60" enum= "Key" >
2019-06-21 23:04:47 +00:00
< key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_EQUAL" value= "61" enum= "Key" >
2019-06-21 23:04:47 +00:00
= key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_GREATER" value= "62" enum= "Key" >
2019-06-21 23:04:47 +00:00
> key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_QUESTION" value= "63" enum= "Key" >
2019-06-21 23:04:47 +00:00
? key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_AT" value= "64" enum= "Key" >
2019-06-21 23:04:47 +00:00
@ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_A" value= "65" enum= "Key" >
2019-06-21 23:04:47 +00:00
A key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_B" value= "66" enum= "Key" >
2019-06-21 23:04:47 +00:00
B key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_C" value= "67" enum= "Key" >
2019-06-21 23:04:47 +00:00
C key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_D" value= "68" enum= "Key" >
2019-06-21 23:04:47 +00:00
D key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_E" value= "69" enum= "Key" >
2019-06-21 23:04:47 +00:00
E key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_F" value= "70" enum= "Key" >
2019-06-21 23:04:47 +00:00
F key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_G" value= "71" enum= "Key" >
2019-06-21 23:04:47 +00:00
G key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_H" value= "72" enum= "Key" >
2019-06-21 23:04:47 +00:00
H key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_I" value= "73" enum= "Key" >
2019-06-21 23:04:47 +00:00
I key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_J" value= "74" enum= "Key" >
2019-06-21 23:04:47 +00:00
J key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_K" value= "75" enum= "Key" >
2019-06-21 23:04:47 +00:00
K key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_L" value= "76" enum= "Key" >
2019-06-21 23:04:47 +00:00
L key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_M" value= "77" enum= "Key" >
2019-06-21 23:04:47 +00:00
M key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_N" value= "78" enum= "Key" >
2019-06-21 23:04:47 +00:00
N key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_O" value= "79" enum= "Key" >
2019-06-21 23:04:47 +00:00
O key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_P" value= "80" enum= "Key" >
2019-06-21 23:04:47 +00:00
P key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_Q" value= "81" enum= "Key" >
2019-06-21 23:04:47 +00:00
Q key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_R" value= "82" enum= "Key" >
2019-06-21 23:04:47 +00:00
R key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_S" value= "83" enum= "Key" >
2019-06-21 23:04:47 +00:00
S key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_T" value= "84" enum= "Key" >
2019-06-21 23:04:47 +00:00
T key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_U" value= "85" enum= "Key" >
2019-06-21 23:04:47 +00:00
U key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_V" value= "86" enum= "Key" >
2019-06-21 23:04:47 +00:00
V key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_W" value= "87" enum= "Key" >
2019-06-21 23:04:47 +00:00
W key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_X" value= "88" enum= "Key" >
2019-06-21 23:04:47 +00:00
X key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_Y" value= "89" enum= "Key" >
2019-06-21 23:04:47 +00:00
Y key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_Z" value= "90" enum= "Key" >
2019-06-21 23:04:47 +00:00
Z key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BRACKETLEFT" value= "91" enum= "Key" >
2019-06-21 23:04:47 +00:00
[ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BACKSLASH" value= "92" enum= "Key" >
2019-06-21 23:04:47 +00:00
\ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BRACKETRIGHT" value= "93" enum= "Key" >
2019-06-21 23:04:47 +00:00
] key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ASCIICIRCUM" value= "94" enum= "Key" >
2019-06-21 23:04:47 +00:00
^ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UNDERSCORE" value= "95" enum= "Key" >
2019-06-21 23:04:47 +00:00
_ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_QUOTELEFT" value= "96" enum= "Key" >
2019-06-30 15:17:46 +00:00
` key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BRACELEFT" value= "123" enum= "Key" >
2019-06-21 23:04:47 +00:00
{ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BAR" value= "124" enum= "Key" >
2019-06-21 23:04:47 +00:00
| key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BRACERIGHT" value= "125" enum= "Key" >
2019-06-21 23:04:47 +00:00
} key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ASCIITILDE" value= "126" enum= "Key" >
2019-06-21 23:04:47 +00:00
~ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_NOBREAKSPACE" value= "160" enum= "Key" >
2019-06-21 23:04:47 +00:00
Non-breakable space key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_EXCLAMDOWN" value= "161" enum= "Key" >
2019-06-21 23:04:47 +00:00
¡ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_CENT" value= "162" enum= "Key" >
2019-06-21 23:04:47 +00:00
¢ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_STERLING" value= "163" enum= "Key" >
2019-06-21 23:04:47 +00:00
£ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_CURRENCY" value= "164" enum= "Key" >
2019-06-30 15:17:46 +00:00
¤ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_YEN" value= "165" enum= "Key" >
2019-06-30 15:17:46 +00:00
¥ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_BROKENBAR" value= "166" enum= "Key" >
2019-06-21 23:04:47 +00:00
¦ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SECTION" value= "167" enum= "Key" >
2019-06-21 23:04:47 +00:00
§ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DIAERESIS" value= "168" enum= "Key" >
2019-06-21 23:04:47 +00:00
¨ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_COPYRIGHT" value= "169" enum= "Key" >
2019-06-21 23:04:47 +00:00
© key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ORDFEMININE" value= "170" enum= "Key" >
2019-06-30 15:17:46 +00:00
ª key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_GUILLEMOTLEFT" value= "171" enum= "Key" >
2019-06-21 23:04:47 +00:00
« key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_NOTSIGN" value= "172" enum= "Key" >
2019-06-30 15:17:46 +00:00
¬ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_HYPHEN" value= "173" enum= "Key" >
2019-06-30 15:17:46 +00:00
Soft hyphen key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_REGISTERED" value= "174" enum= "Key" >
2019-06-21 23:04:47 +00:00
® key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MACRON" value= "175" enum= "Key" >
2019-06-30 15:17:46 +00:00
¯ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DEGREE" value= "176" enum= "Key" >
2019-06-21 23:04:47 +00:00
° key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PLUSMINUS" value= "177" enum= "Key" >
2019-06-21 23:04:47 +00:00
± key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_TWOSUPERIOR" value= "178" enum= "Key" >
2019-06-21 23:04:47 +00:00
² key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_THREESUPERIOR" value= "179" enum= "Key" >
2019-06-21 23:04:47 +00:00
³ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ACUTE" value= "180" enum= "Key" >
2019-06-21 23:04:47 +00:00
´ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MU" value= "181" enum= "Key" >
2019-06-21 23:04:47 +00:00
µ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PARAGRAPH" value= "182" enum= "Key" >
2019-06-30 15:17:46 +00:00
¶ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_PERIODCENTERED" value= "183" enum= "Key" >
2019-06-21 23:04:47 +00:00
· key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_CEDILLA" value= "184" enum= "Key" >
2019-06-30 15:17:46 +00:00
¸ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ONESUPERIOR" value= "185" enum= "Key" >
2019-06-21 23:04:47 +00:00
¹ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MASCULINE" value= "186" enum= "Key" >
2019-06-30 15:17:46 +00:00
º key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_GUILLEMOTRIGHT" value= "187" enum= "Key" >
2019-06-21 23:04:47 +00:00
» key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ONEQUARTER" value= "188" enum= "Key" >
2019-06-21 23:04:47 +00:00
¼ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ONEHALF" value= "189" enum= "Key" >
2019-06-21 23:04:47 +00:00
½ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_THREEQUARTERS" value= "190" enum= "Key" >
2019-06-21 23:04:47 +00:00
¾ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_QUESTIONDOWN" value= "191" enum= "Key" >
2019-06-21 23:04:47 +00:00
¿ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_AGRAVE" value= "192" enum= "Key" >
2019-06-30 15:17:46 +00:00
À key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_AACUTE" value= "193" enum= "Key" >
2019-06-30 15:17:46 +00:00
Á key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ACIRCUMFLEX" value= "194" enum= "Key" >
2019-06-30 15:17:46 +00:00
 key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ATILDE" value= "195" enum= "Key" >
2019-06-30 15:17:46 +00:00
à key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ADIAERESIS" value= "196" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ä key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ARING" value= "197" enum= "Key" >
2019-06-30 15:17:46 +00:00
Å key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_AE" value= "198" enum= "Key" >
2019-06-30 15:17:46 +00:00
Æ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_CCEDILLA" value= "199" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ç key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_EGRAVE" value= "200" enum= "Key" >
2019-06-30 15:17:46 +00:00
È key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_EACUTE" value= "201" enum= "Key" >
2019-06-30 15:17:46 +00:00
É key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ECIRCUMFLEX" value= "202" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ê key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_EDIAERESIS" value= "203" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ë key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_IGRAVE" value= "204" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ì key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_IACUTE" value= "205" enum= "Key" >
2019-06-30 15:17:46 +00:00
Í key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ICIRCUMFLEX" value= "206" enum= "Key" >
2019-06-30 15:17:46 +00:00
Î key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_IDIAERESIS" value= "207" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ï key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ETH" value= "208" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ð key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_NTILDE" value= "209" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ñ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_OGRAVE" value= "210" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ò key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_OACUTE" value= "211" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ó key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_OCIRCUMFLEX" value= "212" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ô key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_OTILDE" value= "213" enum= "Key" >
2019-06-30 15:17:46 +00:00
Õ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_ODIAERESIS" value= "214" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ö key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_MULTIPLY" value= "215" enum= "Key" >
2019-06-21 23:04:47 +00:00
× key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_OOBLIQUE" value= "216" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ø key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UGRAVE" value= "217" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ù key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UACUTE" value= "218" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ú key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UCIRCUMFLEX" value= "219" enum= "Key" >
2019-06-30 15:17:46 +00:00
Û key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_UDIAERESIS" value= "220" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ü key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_YACUTE" value= "221" enum= "Key" >
2019-06-30 15:17:46 +00:00
Ý key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_THORN" value= "222" enum= "Key" >
2019-06-30 15:17:46 +00:00
Þ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_SSHARP" value= "223" enum= "Key" >
2019-06-21 23:04:47 +00:00
ß key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_DIVISION" value= "247" enum= "Key" >
2019-06-21 23:04:47 +00:00
÷ key.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "KEY_YDIAERESIS" value= "255" enum= "Key" >
2019-06-21 23:04:47 +00:00
ÿ key.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_CODE_MASK" value= "33554431" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Key Code mask.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MODIFIER_MASK" value= "-16777216" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Modifier key mask.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MASK_SHIFT" value= "33554432" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Shift key mask.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MASK_ALT" value= "67108864" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Alt key mask.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MASK_META" value= "134217728" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Meta key mask.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MASK_CTRL" value= "268435456" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Ctrl key mask.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-20 19:49:39 +00:00
<constant name= "KEY_MASK_CMD" value= "platform-dependent" enum= "KeyModifierMask" >
2019-12-17 17:26:21 +00:00
Command key mask. On macOS, this is equivalent to [constant KEY_MASK_META]. On other platforms, this is equivalent to [constant KEY_MASK_CTRL]. This mask should be preferred to [constant KEY_MASK_META] or [constant KEY_MASK_CTRL] for system shortcuts as it handles all platforms correctly.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MASK_KPAD" value= "536870912" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Keypad key mask.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "KEY_MASK_GROUP_SWITCH" value= "1073741824" enum= "KeyModifierMask" >
2019-06-21 23:04:47 +00:00
Group Switch key mask.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_LEFT" value= "1" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Left mouse button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_RIGHT" value= "2" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Right mouse button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_MIDDLE" value= "3" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Middle mouse button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_WHEEL_UP" value= "4" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Mouse wheel up.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_WHEEL_DOWN" value= "5" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Mouse wheel down.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_WHEEL_LEFT" value= "6" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Mouse wheel left button (only present on some mice).
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_WHEEL_RIGHT" value= "7" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Mouse wheel right button (only present on some mice).
2017-09-12 20:42:36 +00:00
</constant>
2021-08-13 21:31:57 +00:00
<constant name= "MOUSE_BUTTON_XBUTTON1" value= "8" enum= "MouseButton" >
Extra mouse button 1 (only present on some mice).
</constant>
<constant name= "MOUSE_BUTTON_XBUTTON2" value= "9" enum= "MouseButton" >
Extra mouse button 2 (only present on some mice).
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_MASK_LEFT" value= "1" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Left mouse button mask.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_MASK_RIGHT" value= "2" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Right mouse button mask.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_MASK_MIDDLE" value= "4" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Middle mouse button mask.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_MASK_XBUTTON1" value= "128" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Extra mouse button 1 mask.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MOUSE_BUTTON_MASK_XBUTTON2" value= "256" enum= "MouseButton" >
2019-06-21 23:04:47 +00:00
Extra mouse button 2 mask.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_INVALID" value= "-1" enum= "JoyButton" >
2020-04-23 12:01:36 +00:00
An invalid game controller button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_A" value= "0" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL button A. Corresponds to the bottom action button: Sony Cross, Xbox A, Nintendo B.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_B" value= "1" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL button B. Corresponds to the right action button: Sony Circle, Xbox B, Nintendo A.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_X" value= "2" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL button X. Corresponds to the left action button: Sony Square, Xbox X, Nintendo Y.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_Y" value= "3" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL button Y. Corresponds to the top action button: Sony Triangle, Xbox Y, Nintendo X.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_BACK" value= "4" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL back button. Corresponds to the Sony Select, Xbox Back, Nintendo - button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_GUIDE" value= "5" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL guide button. Corresponds to the Sony PS, Xbox Home button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_START" value= "6" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL start button. Corresponds to the Nintendo + button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_LEFT_STICK" value= "7" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL left stick button. Corresponds to the Sony L3, Xbox L/LS button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_RIGHT_STICK" value= "8" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL right stick button. Corresponds to the Sony R3, Xbox R/RS button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_LEFT_SHOULDER" value= "9" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL left shoulder button. Corresponds to the Sony L1, Xbox LB button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_RIGHT_SHOULDER" value= "10" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller SDL right shoulder button. Corresponds to the Sony R1, Xbox RB button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_DPAD_UP" value= "11" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller D-pad up button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_DPAD_DOWN" value= "12" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller D-pad down button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_DPAD_LEFT" value= "13" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller D-pad left button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_DPAD_RIGHT" value= "14" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
Game controller D-pad right button.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_MISC1" value= "15" enum= "JoyButton" >
2021-02-07 13:52:38 +00:00
Game controller SDL miscellaneous button. Corresponds to Xbox share button, PS5 microphone button, Nintendo capture button.
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_PADDLE1" value= "16" enum= "JoyButton" >
2021-02-07 13:52:38 +00:00
Game controller SDL paddle 1 button.
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_PADDLE2" value= "17" enum= "JoyButton" >
2021-02-07 13:52:38 +00:00
Game controller SDL paddle 2 button.
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_PADDLE3" value= "18" enum= "JoyButton" >
2021-02-07 13:52:38 +00:00
Game controller SDL paddle 3 button.
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_PADDLE4" value= "19" enum= "JoyButton" >
2021-02-07 13:52:38 +00:00
Game controller SDL paddle 4 button.
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_TOUCHPAD" value= "20" enum= "JoyButton" >
2021-02-07 13:52:38 +00:00
Game controller SDL touchpad button.
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_SDL_MAX" value= "21" enum= "JoyButton" >
2020-04-23 12:01:36 +00:00
The number of SDL game controller buttons.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_BUTTON_MAX" value= "36" enum= "JoyButton" >
2020-11-18 09:44:25 +00:00
The maximum number of game controller buttons: Android supports up to 36 buttons.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_INVALID" value= "-1" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
An invalid game controller axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_LEFT_X" value= "0" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
Game controller left joystick x-axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_LEFT_Y" value= "1" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
Game controller left joystick y-axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_RIGHT_X" value= "2" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
Game controller right joystick x-axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_RIGHT_Y" value= "3" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
Game controller right joystick y-axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_TRIGGER_LEFT" value= "4" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
Game controller left trigger axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_TRIGGER_RIGHT" value= "5" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
Game controller right trigger axis.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_SDL_MAX" value= "6" enum= "JoyAxis" >
2020-04-23 12:01:36 +00:00
The number of SDL game controller axes.
2017-09-12 20:42:36 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "JOY_AXIS_MAX" value= "10" enum= "JoyAxis" >
2020-11-18 09:44:25 +00:00
The maximum number of game controller axes: OpenVR supports up to 5 Joysticks making a total of 10 axes.
2019-06-13 12:44:32 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_NOTE_OFF" value= "8" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI note OFF message.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_NOTE_ON" value= "9" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI note ON message.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_AFTERTOUCH" value= "10" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI aftertouch message.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_CONTROL_CHANGE" value= "11" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI control change message.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_PROGRAM_CHANGE" value= "12" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI program change message.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_CHANNEL_PRESSURE" value= "13" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI channel pressure message.
2018-07-26 09:56:21 +00:00
</constant>
2020-05-13 22:27:34 +00:00
<constant name= "MIDI_MESSAGE_PITCH_BEND" value= "14" enum= "MIDIMessage" >
2019-06-30 15:17:46 +00:00
MIDI pitch bend message.
2018-07-26 09:56:21 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "OK" value= "0" enum= "Error" >
2019-06-21 23:04:47 +00:00
Methods that return [enum Error] return [constant OK] when no error occurred. Note that many functions don't return an error code but will print error messages to standard output.
2019-06-27 10:35:55 +00:00
Since [constant OK] has value 0, and all other failure codes are positive integers, it can also be used in boolean checks, e.g.:
[codeblock]
var err = method_that_returns_error()
2020-01-23 17:15:39 +00:00
if err != OK:
2020-05-01 15:52:08 +00:00
print("Failure!")
2019-06-27 10:35:55 +00:00
# Or, equivalent:
2020-01-23 17:15:39 +00:00
if err:
2020-05-01 15:52:08 +00:00
print("Still failing!")
2019-06-27 10:35:55 +00:00
[/codeblock]
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "FAILED" value= "1" enum= "Error" >
2017-10-22 23:46:46 +00:00
Generic error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_UNAVAILABLE" value= "2" enum= "Error" >
2019-06-27 10:35:55 +00:00
Unavailable error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_UNCONFIGURED" value= "3" enum= "Error" >
2019-06-27 10:35:55 +00:00
Unconfigured error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_UNAUTHORIZED" value= "4" enum= "Error" >
2019-06-27 10:35:55 +00:00
Unauthorized error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_PARAMETER_RANGE_ERROR" value= "5" enum= "Error" >
2019-06-27 10:35:55 +00:00
Parameter range error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_OUT_OF_MEMORY" value= "6" enum= "Error" >
2019-06-27 10:35:55 +00:00
Out of memory (OOM) error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_NOT_FOUND" value= "7" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Not found error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_BAD_DRIVE" value= "8" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Bad drive error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_BAD_PATH" value= "9" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Bad path error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_NO_PERMISSION" value= "10" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: No permission error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_ALREADY_IN_USE" value= "11" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Already in use error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_CANT_OPEN" value= "12" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Can't open error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_CANT_WRITE" value= "13" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Can't write error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_CANT_READ" value= "14" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Can't read error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_UNRECOGNIZED" value= "15" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Unrecognized error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_CORRUPT" value= "16" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Corrupt error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_MISSING_DEPENDENCIES" value= "17" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: Missing dependencies error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_FILE_EOF" value= "18" enum= "Error" >
2019-06-27 10:35:55 +00:00
File: End of file (EOF) error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_CANT_OPEN" value= "19" enum= "Error" >
2019-06-27 10:35:55 +00:00
Can't open error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_CANT_CREATE" value= "20" enum= "Error" >
2019-06-27 10:35:55 +00:00
Can't create error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_QUERY_FAILED" value= "21" enum= "Error" >
2019-06-27 10:35:55 +00:00
Query failed error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_ALREADY_IN_USE" value= "22" enum= "Error" >
2019-06-27 10:35:55 +00:00
Already in use error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_LOCKED" value= "23" enum= "Error" >
2019-06-27 10:35:55 +00:00
Locked error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_TIMEOUT" value= "24" enum= "Error" >
2019-06-27 10:35:55 +00:00
Timeout error.
</constant>
<constant name= "ERR_CANT_CONNECT" value= "25" enum= "Error" >
Can't connect error.
</constant>
<constant name= "ERR_CANT_RESOLVE" value= "26" enum= "Error" >
Can't resolve error.
</constant>
<constant name= "ERR_CONNECTION_ERROR" value= "27" enum= "Error" >
Connection error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_CANT_ACQUIRE_RESOURCE" value= "28" enum= "Error" >
2019-06-27 10:35:55 +00:00
Can't acquire resource error.
</constant>
<constant name= "ERR_CANT_FORK" value= "29" enum= "Error" >
Can't fork process error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_INVALID_DATA" value= "30" enum= "Error" >
2019-06-27 10:35:55 +00:00
Invalid data error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_INVALID_PARAMETER" value= "31" enum= "Error" >
2019-06-27 10:35:55 +00:00
Invalid parameter error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_ALREADY_EXISTS" value= "32" enum= "Error" >
2019-06-27 10:35:55 +00:00
Already exists error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_DOES_NOT_EXIST" value= "33" enum= "Error" >
2019-06-27 10:35:55 +00:00
Does not exist error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_DATABASE_CANT_READ" value= "34" enum= "Error" >
2019-06-27 10:35:55 +00:00
Database: Read error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_DATABASE_CANT_WRITE" value= "35" enum= "Error" >
2019-06-27 10:35:55 +00:00
Database: Write error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_COMPILATION_FAILED" value= "36" enum= "Error" >
2019-06-27 10:35:55 +00:00
Compilation failed error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_METHOD_NOT_FOUND" value= "37" enum= "Error" >
2019-06-27 10:35:55 +00:00
Method not found error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_LINK_FAILED" value= "38" enum= "Error" >
2019-06-27 10:35:55 +00:00
Linking failed error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_SCRIPT_FAILED" value= "39" enum= "Error" >
2019-06-27 10:35:55 +00:00
Script failed error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_CYCLIC_LINK" value= "40" enum= "Error" >
2019-06-27 10:35:55 +00:00
Cycling link (import cycle) error.
</constant>
<constant name= "ERR_INVALID_DECLARATION" value= "41" enum= "Error" >
Invalid declaration error.
</constant>
<constant name= "ERR_DUPLICATE_SYMBOL" value= "42" enum= "Error" >
Duplicate symbol error.
</constant>
<constant name= "ERR_PARSE_ERROR" value= "43" enum= "Error" >
Parse error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_BUSY" value= "44" enum= "Error" >
2019-06-27 10:35:55 +00:00
Busy error.
</constant>
<constant name= "ERR_SKIP" value= "45" enum= "Error" >
Skip error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_HELP" value= "46" enum= "Error" >
2019-06-27 10:35:55 +00:00
Help error.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "ERR_BUG" value= "47" enum= "Error" >
2019-06-27 10:35:55 +00:00
Bug error.
</constant>
<constant name= "ERR_PRINTER_ON_FIRE" value= "48" enum= "Error" >
Printer on fire error. (This is an easter egg, no engine methods return this error code.)
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_HINT_NONE" value= "0" enum= "PropertyHint" >
2019-06-21 23:04:47 +00:00
No hint for the edited property.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_HINT_RANGE" value= "1" enum= "PropertyHint" >
2019-08-10 16:59:42 +00:00
Hints that an integer or float property should be within a range specified via the hint string [code]"min,max"[/code] or [code]"min,max,step"[/code]. The hint string can optionally include [code]"or_greater"[/code] and/or [code]"or_lesser"[/code] to allow manual input going respectively above the max or below the min values. Example: [code]"-360,360,1,or_greater,or_lesser"[/code].
Fix editor suffixes and degrees conversion
* Functions to convert to/from degrees are all gone. Conversion is done by the editor.
* Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees.
* Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m"
* In general, can add suffixes for EditorSpinSlider
Not covered by this PR, will have to be addressed by future ones:
* Ability to switch radians/degrees in the inspector for angle properties (if actually wanted).
* Animations previously made will most likely break, need to add a way to make old ones compatible.
* Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes.
* Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
2021-06-29 19:42:12 +00:00
Additionally, other keywords can be included: "exp" for exponential range editing, "radians" for editing radian angles in degrees, "degrees" to hint at an angle and "noslider" to hide the slider.
2017-09-12 20:42:36 +00:00
</constant>
Fix editor suffixes and degrees conversion
* Functions to convert to/from degrees are all gone. Conversion is done by the editor.
* Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees.
* Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m"
* In general, can add suffixes for EditorSpinSlider
Not covered by this PR, will have to be addressed by future ones:
* Ability to switch radians/degrees in the inspector for angle properties (if actually wanted).
* Animations previously made will most likely break, need to add a way to make old ones compatible.
* Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes.
* Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
2021-06-29 19:42:12 +00:00
<constant name= "PROPERTY_HINT_ENUM" value= "2" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an integer, float or string property is an enumerated value to pick in a list specified via a hint string such as [code]"Hello,Something,Else"[/code].
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_ENUM_SUGGESTION" value= "3" enum= "PropertyHint" >
Hints that a string property is can be an enumerated value to pick in a list specified via a hint string such as [code]"Hello,Something,Else"[/code].
Unlike [constant PROPERTY_HINT_ENUM] a property with this hint still accepts arbitrary values and can be empty. The list of values serves to suggest possible values.
</constant>
<constant name= "PROPERTY_HINT_EXP_EASING" value= "4" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a float property should be edited via an exponential easing function. The hint string can include [code]"attenuation"[/code] to flip the curve horizontally and/or [code]"inout"[/code] to also include in/out easing.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LENGTH" value= "5" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Deprecated hint, unused.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_KEY_ACCEL" value= "6" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Deprecated hint, unused.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_FLAGS" value= "7" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an integer property is a bitmask with named bit flags. For example, to allow toggling bits 0, 1, 2 and 4, the hint could be something like [code]"Bit0,Bit1,Bit2,,Bit4"[/code].
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LAYERS_2D_RENDER" value= "8" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an integer property is a bitmask using the optionally named 2D render layers.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LAYERS_2D_PHYSICS" value= "9" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an integer property is a bitmask using the optionally named 2D physics layers.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LAYERS_2D_NAVIGATION" value= "10" enum= "PropertyHint" >
2021-03-08 19:56:33 +00:00
Hints that an integer property is a bitmask using the optionally named 2D navigation layers.
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LAYERS_3D_RENDER" value= "11" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an integer property is a bitmask using the optionally named 3D render layers.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LAYERS_3D_PHYSICS" value= "12" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an integer property is a bitmask using the optionally named 3D physics layers.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_LAYERS_3D_NAVIGATION" value= "13" enum= "PropertyHint" >
2021-03-08 19:56:33 +00:00
Hints that an integer property is a bitmask using the optionally named 2D navigation layers.
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_FILE" value= "14" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a string property is a path to a file. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like [code]"*.png,*.jpg"[/code].
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_DIR" value= "15" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a string property is a path to a directory. Editing it will show a file dialog for picking the path.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_GLOBAL_FILE" value= "16" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a string property is an absolute path to a file outside the project folder. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like [code]"*.png,*.jpg"[/code].
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_GLOBAL_DIR" value= "17" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a string property is an absolute path to a directory outside the project folder. Editing it will show a file dialog for picking the path.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_RESOURCE_TYPE" value= "18" enum= "PropertyHint" >
2020-02-12 08:59:06 +00:00
Hints that a property is an instance of a [Resource]-derived type, optionally specified via the hint string (e.g. [code]"Texture2D"[/code]). Editing it will show a popup menu of valid resource types to instantiate.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_MULTILINE_TEXT" value= "19" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a string property is text with line breaks. Editing it will show a text input field where line breaks can be typed.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_PLACEHOLDER_TEXT" value= "20" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a string property should have a placeholder text visible on its input field, whenever the property is empty. The hint string is the placeholder text to use.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_COLOR_NO_ALPHA" value= "21" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that a color property should be edited without changing its alpha component, i.e. only R, G and B channels are edited.
2018-08-20 22:35:30 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_IMAGE_COMPRESS_LOSSY" value= "22" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an image is compressed using lossy compression.
2017-09-12 20:42:36 +00:00
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS" value= "23" enum= "PropertyHint" >
2019-06-30 15:17:46 +00:00
Hints that an image is compressed using lossless compression.
2017-09-12 20:42:36 +00:00
</constant>
2021-08-06 14:13:00 +00:00
<constant name= "PROPERTY_HINT_OBJECT_ID" value= "24" enum= "PropertyHint" >
</constant>
2021-07-04 20:42:23 +00:00
<constant name= "PROPERTY_HINT_TYPE_STRING" value= "25" enum= "PropertyHint" >
2020-11-09 16:12:04 +00:00
Hint that a property represents a particular type. If a property is [constant TYPE_STRING], allows to set a type from the create dialog. If you need to create an [Array] to contain elements of a specific type, the [code]hint_string[/code] must encode nested types using [code]":"[/code] and [code]"/"[/code] for specifying [Resource] types. For instance:
[codeblock]
hint_string = "%s:" % [TYPE_INT] # Array of inteters.
hint_string = "%s:%s:" % [TYPE_ARRAY, TYPE_REAL] # Two-dimensional array of floats.
hint_string = "%s/%s:Resource" % [TYPE_OBJECT, TYPE_OBJECT] # Array of resources.
hint_string = "%s:%s/%s:Resource" % [TYPE_ARRAY, TYPE_OBJECT, TYPE_OBJECT] # Two-dimensional array of resources.
[/codeblock]
2021-10-05 12:24:34 +00:00
[b]Note:[/b] The final colon is required to specify for properly detecting built-in types.
2020-11-09 16:12:04 +00:00
</constant>
2021-08-06 14:13:00 +00:00
<constant name= "PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE" value= "26" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_METHOD_OF_VARIANT_TYPE" value= "27" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_METHOD_OF_BASE_TYPE" value= "28" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_METHOD_OF_INSTANCE" value= "29" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_METHOD_OF_SCRIPT" value= "30" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_PROPERTY_OF_VARIANT_TYPE" value= "31" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_PROPERTY_OF_BASE_TYPE" value= "32" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_PROPERTY_OF_INSTANCE" value= "33" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_PROPERTY_OF_SCRIPT" value= "34" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_OBJECT_TOO_BIG" value= "35" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_NODE_PATH_VALID_TYPES" value= "36" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_SAVE_FILE" value= "37" enum= "PropertyHint" >
</constant>
<constant name= "PROPERTY_HINT_INT_IS_OBJECTID" value= "38" enum= "PropertyHint" >
</constant>
2021-08-23 17:53:27 +00:00
<constant name= "PROPERTY_HINT_INT_IS_POINTER" value= "40" enum= "PropertyHint" >
</constant>
2021-08-06 14:13:00 +00:00
<constant name= "PROPERTY_HINT_ARRAY_TYPE" value= "39" enum= "PropertyHint" >
</constant>
2021-08-23 17:53:27 +00:00
<constant name= "PROPERTY_HINT_MAX" value= "41" enum= "PropertyHint" >
2021-08-06 14:13:00 +00:00
</constant>
<constant name= "PROPERTY_USAGE_NONE" value= "0" enum= "PropertyUsageFlags" >
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_STORAGE" value= "1" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property is serialized and saved in the scene file (default).
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_EDITOR" value= "2" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property is shown in the editor inspector (default).
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_NETWORK" value= "4" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Deprecated usage flag, unused.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_EDITOR_HELPER" value= "8" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Deprecated usage flag, unused.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_CHECKABLE" value= "16" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property can be checked in the editor inspector.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_CHECKED" value= "32" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property is checked in the editor inspector.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_INTERNATIONALIZED" value= "64" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property is a translatable string.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_GROUP" value= "128" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Used to group properties together in the editor.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_CATEGORY" value= "256" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Used to categorize properties together in the editor.
2017-09-12 20:42:36 +00:00
</constant>
2020-04-20 14:32:45 +00:00
<constant name= "PROPERTY_USAGE_SUBGROUP" value= "512" enum= "PropertyUsageFlags" >
Used to group properties together in the editor in a subgroup (under a group).
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_NO_INSTANCE_STATE" value= "2048" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property does not save its state in [PackedScene].
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_RESTART_IF_CHANGED" value= "4096" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Editing the property prompts the user for restarting the editor.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_SCRIPT_VARIABLE" value= "8192" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
The property is a script variable which should be serialized and saved in the scene file.
2017-09-12 20:42:36 +00:00
</constant>
2021-08-06 14:13:00 +00:00
<constant name= "PROPERTY_USAGE_STORE_IF_NULL" value= "16384" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_ANIMATE_AS_TRIGGER" value= "32768" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED" value= "65536" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE" value= "131072" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_CLASS_IS_ENUM" value= "262144" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_NIL_IS_VARIANT" value= "524288" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_INTERNAL" value= "1048576" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_DO_NOT_SHARE_ON_DUPLICATE" value= "2097152" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_HIGH_END_GFX" value= "4194304" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT" value= "8388608" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT" value= "16777216" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_KEYING_INCREMENTS" value= "33554432" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_DEFERRED_SET_RESOURCE" value= "67108864" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT" value= "134217728" enum= "PropertyUsageFlags" >
</constant>
<constant name= "PROPERTY_USAGE_EDITOR_BASIC_SETTING" value= "268435456" enum= "PropertyUsageFlags" >
</constant>
2021-08-31 08:48:45 +00:00
<constant name= "PROPERTY_USAGE_ARRAY" value= "1073741824" enum= "PropertyUsageFlags" >
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_DEFAULT" value= "7" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Default usage (storage, editor and network).
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "PROPERTY_USAGE_DEFAULT_INTL" value= "71" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Default usage for translatable strings (storage, editor, network and internationalized).
2017-09-12 20:42:36 +00:00
</constant>
2021-11-03 22:06:17 +00:00
<constant name= "PROPERTY_USAGE_NO_EDITOR" value= "5" enum= "PropertyUsageFlags" >
2019-06-30 15:17:46 +00:00
Default usage but without showing the property in the editor (storage, network).
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_NORMAL" value= "1" enum= "MethodFlags" >
2019-06-21 23:04:47 +00:00
Flag for a normal method.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_EDITOR" value= "2" enum= "MethodFlags" >
2019-06-21 23:04:47 +00:00
Flag for an editor method.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_NOSCRIPT" value= "4" enum= "MethodFlags" >
2019-06-30 15:17:46 +00:00
Deprecated method flag, unused.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_CONST" value= "8" enum= "MethodFlags" >
2019-06-21 23:04:47 +00:00
Flag for a constant method.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_REVERSE" value= "16" enum= "MethodFlags" >
2019-06-30 15:17:46 +00:00
Deprecated method flag, unused.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_VIRTUAL" value= "32" enum= "MethodFlags" >
2019-06-21 23:04:47 +00:00
Flag for a virtual method.
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAG_FROM_SCRIPT" value= "64" enum= "MethodFlags" >
2019-06-30 15:17:46 +00:00
Deprecated method flag, unused.
2017-09-12 20:42:36 +00:00
</constant>
2021-03-18 13:44:42 +00:00
<constant name= "METHOD_FLAG_STATIC" value= "256" enum= "MethodFlags" >
</constant>
2021-08-22 01:52:44 +00:00
<constant name= "METHOD_FLAG_OBJECT_CORE" value= "512" enum= "MethodFlags" >
2021-08-22 17:46:17 +00:00
Used internally. Allows to not dump core virtuals such as [code]_notification[/code] to the JSON API.
2021-08-22 01:52:44 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "METHOD_FLAGS_DEFAULT" value= "1" enum= "MethodFlags" >
2019-06-21 23:04:47 +00:00
Default method flags.
2017-09-12 20:42:36 +00:00
</constant>
2021-09-03 17:40:47 +00:00
<constant name= "RPC_MODE_DISABLED" value= "0" enum= "RPCMode" >
Used with [method Node.rpc_config] to disable a method or property for all RPC calls, making it unavailable. Default for all methods.
</constant>
2021-10-01 08:43:22 +00:00
<constant name= "RPC_MODE_ANY_PEER" value= "1" enum= "RPCMode" >
2021-09-03 17:40:47 +00:00
Used with [method Node.rpc_config] to set a method to be callable remotely by any peer. Analogous to the [code]@rpc(any)[/code] annotation. Calls are accepted from all remote peers, no matter if they are node's authority or not.
</constant>
<constant name= "RPC_MODE_AUTH" value= "2" enum= "RPCMode" >
2021-09-07 21:35:19 +00:00
Used with [method Node.rpc_config] to set a method to be callable remotely only by the current multiplayer authority (which is the server by default). Analogous to the [code]@rpc(auth)[/code] annotation. See [method Node.set_multiplayer_authority].
2021-09-03 17:40:47 +00:00
</constant>
<constant name= "TRANSFER_MODE_UNRELIABLE" value= "0" enum= "TransferMode" >
2021-10-01 08:43:22 +00:00
Packets are not acknowledged, no resend attempts are made for lost packets. Packets may arrive in any order. Potentially faster than [constant TRANSFER_MODE_UNRELIABLE_ORDERED]. Use for non-critical data, and always consider whether the order matters.
2021-09-03 17:40:47 +00:00
</constant>
2021-10-01 08:43:22 +00:00
<constant name= "TRANSFER_MODE_UNRELIABLE_ORDERED" value= "1" enum= "TransferMode" >
2021-09-03 17:40:47 +00:00
Packets are not acknowledged, no resend attempts are made for lost packets. Packets are received in the order they were sent in. Potentially faster than [constant TRANSFER_MODE_RELIABLE]. Use for non-critical data or data that would be outdated if received late due to resend attempt(s) anyway, for example movement and positional data.
</constant>
<constant name= "TRANSFER_MODE_RELIABLE" value= "2" enum= "TransferMode" >
Packets must be received and resend attempts should be made until the packets are acknowledged. Packets must be received in the order they were sent in. Most reliable transfer mode, but potentially the slowest due to the overhead. Use for critical data that must be transmitted and arrive in order, for example an ability being triggered or a chat message. Consider carefully if the information really is critical, and use sparingly.
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "TYPE_NIL" value= "0" enum= "Variant.Type" >
2020-01-26 14:18:06 +00:00
Variable is [code]null[/code].
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "TYPE_BOOL" value= "1" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [bool].
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "TYPE_INT" value= "2" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [int].
</constant>
2020-12-04 12:25:14 +00:00
<constant name= "TYPE_FLOAT" value= "3" enum= "Variant.Type" >
2019-06-30 15:17:46 +00:00
Variable is of type [float] (real).
2017-09-12 20:42:36 +00:00
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "TYPE_STRING" value= "4" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [String].
</constant>
2017-11-24 22:16:30 +00:00
<constant name= "TYPE_VECTOR2" value= "5" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Vector2].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_VECTOR2I" value= "6" enum= "Variant.Type" >
Variable is of type [Vector2i].
</constant>
<constant name= "TYPE_RECT2" value= "7" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Rect2].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_RECT2I" value= "8" enum= "Variant.Type" >
Variable is of type [Rect2i].
</constant>
<constant name= "TYPE_VECTOR3" value= "9" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Vector3].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_VECTOR3I" value= "10" enum= "Variant.Type" >
Variable is of type [Vector3i].
</constant>
<constant name= "TYPE_TRANSFORM2D" value= "11" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Transform2D].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_PLANE" value= "12" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Plane].
</constant>
2021-01-20 07:02:02 +00:00
<constant name= "TYPE_QUATERNION" value= "13" enum= "Variant.Type" >
Variable is of type [Quaternion].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_AABB" value= "14" enum= "Variant.Type" >
2017-11-17 02:09:00 +00:00
Variable is of type [AABB].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_BASIS" value= "15" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Basis].
</constant>
2020-05-03 08:27:36 +00:00
<constant name= "TYPE_TRANSFORM3D" value= "16" enum= "Variant.Type" >
Variable is of type [Transform3D].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_COLOR" value= "17" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Color].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_STRING_NAME" value= "18" enum= "Variant.Type" >
Variable is of type [StringName].
2020-02-22 13:59:09 +00:00
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_NODE_PATH" value= "19" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [NodePath].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_RID" value= "20" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [RID].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_OBJECT" value= "21" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Object].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_CALLABLE" value= "22" enum= "Variant.Type" >
Variable is of type [Callable].
2020-02-22 13:59:09 +00:00
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_SIGNAL" value= "23" enum= "Variant.Type" >
Variable is of type [Signal].
2020-02-22 13:59:09 +00:00
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_DICTIONARY" value= "24" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Dictionary].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_ARRAY" value= "25" enum= "Variant.Type" >
2017-09-12 20:42:36 +00:00
Variable is of type [Array].
</constant>
2020-02-24 16:00:40 +00:00
<constant name= "TYPE_RAW_ARRAY" value= "26" enum= "Variant.Type" >
2020-02-18 12:59:24 +00:00
Variable is of type [PackedByteArray].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_INT32_ARRAY" value= "27" enum= "Variant.Type" >
Variable is of type [PackedInt32Array].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_INT64_ARRAY" value= "28" enum= "Variant.Type" >
Variable is of type [PackedInt64Array].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_FLOAT32_ARRAY" value= "29" enum= "Variant.Type" >
Variable is of type [PackedFloat32Array].
</constant>
<constant name= "TYPE_FLOAT64_ARRAY" value= "30" enum= "Variant.Type" >
Variable is of type [PackedFloat64Array].
</constant>
<constant name= "TYPE_STRING_ARRAY" value= "31" enum= "Variant.Type" >
2020-02-18 12:59:24 +00:00
Variable is of type [PackedStringArray].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_VECTOR2_ARRAY" value= "32" enum= "Variant.Type" >
2020-02-18 12:59:24 +00:00
Variable is of type [PackedVector2Array].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_VECTOR3_ARRAY" value= "33" enum= "Variant.Type" >
2020-02-18 12:59:24 +00:00
Variable is of type [PackedVector3Array].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_COLOR_ARRAY" value= "34" enum= "Variant.Type" >
2020-02-18 12:59:24 +00:00
Variable is of type [PackedColorArray].
2017-09-12 20:42:36 +00:00
</constant>
2020-02-25 17:10:58 +00:00
<constant name= "TYPE_MAX" value= "35" enum= "Variant.Type" >
2019-06-27 09:10:53 +00:00
Represents the size of the [enum Variant.Type] enum.
2017-10-24 17:22:37 +00:00
</constant>
2018-01-03 12:45:03 +00:00
<constant name= "OP_EQUAL" value= "0" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Equality operator ([code]==[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_NOT_EQUAL" value= "1" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Inequality operator ([code]!=[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_LESS" value= "2" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Less than operator ([code]< [/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_LESS_EQUAL" value= "3" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Less than or equal operator ([code]< =[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_GREATER" value= "4" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Greater than operator ([code]> [/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_GREATER_EQUAL" value= "5" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Greater than or equal operator ([code]> =[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_ADD" value= "6" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Addition operator ([code]+[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_SUBTRACT" value= "7" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Subtraction operator ([code]-[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_MULTIPLY" value= "8" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Multiplication operator ([code]*[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_DIVIDE" value= "9" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Division operator ([code]/[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_NEGATE" value= "10" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Unary negation operator ([code]-[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_POSITIVE" value= "11" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Unary plus operator ([code]+[/code]).
2018-01-03 12:45:03 +00:00
</constant>
<constant name= "OP_MODULE" value= "12" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Remainder/modulo operator ([code]%[/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_SHIFT_LEFT" value= "13" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Left shift operator ([code]< < [/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_SHIFT_RIGHT" value= "14" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Right shift operator ([code]> > [/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_BIT_AND" value= "15" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Bitwise AND operator ([code]& [/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_BIT_OR" value= "16" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Bitwise OR operator ([code]|[/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_BIT_XOR" value= "17" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Bitwise XOR operator ([code]^[/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_BIT_NEGATE" value= "18" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Bitwise NOT operator ([code]~[/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_AND" value= "19" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Logical AND operator ([code]and[/code] or [code]& & [/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_OR" value= "20" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Logical OR operator ([code]or[/code] or [code]||[/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_XOR" value= "21" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Logical XOR operator (not implemented in GDScript).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_NOT" value= "22" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Logical NOT operator ([code]not[/code] or [code]![/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_IN" value= "23" enum= "Variant.Operator" >
2019-06-30 15:17:46 +00:00
Logical IN operator ([code]in[/code]).
2018-01-03 12:45:03 +00:00
</constant>
2020-11-09 16:46:03 +00:00
<constant name= "OP_MAX" value= "24" enum= "Variant.Operator" >
2019-06-27 09:10:53 +00:00
Represents the size of the [enum Variant.Operator] enum.
2018-01-03 12:45:03 +00:00
</constant>
2017-09-12 20:42:36 +00:00
</constants>
</class>