From c632c13c66db715b816390f0734f2b1839a7ff3e Mon Sep 17 00:00:00 2001 From: hondres Date: Fri, 8 Jan 2016 00:40:41 +0100 Subject: Add some joystick functions to input. Enables manipulation of mappings at runtime --- doc/base/classes.xml | 154 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 131 insertions(+), 23 deletions(-) (limited to 'doc/base') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 1b95899729..4a1e437694 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -432,7 +432,7 @@ - + @@ -443,9 +443,9 @@ - + - + Convert one or more arguments to strings in the best way possible. @@ -454,9 +454,9 @@ - + - + Convert one or more arguments to strings in the best way possible. @@ -465,9 +465,9 @@ - + - + Print one or more arguments to strings in the best way possible to a console line. @@ -476,9 +476,9 @@ - + - + Print one or more arguments to the console with a tab between each argument. @@ -487,9 +487,9 @@ - + - + @@ -497,9 +497,9 @@ - + - + Print one or more arguments to strings in the best way possible to standard error line. @@ -508,9 +508,9 @@ - + - + Print one or more arguments to strings in the best way possible to console. No newline is added at the end. @@ -519,25 +519,40 @@ - + Converts the value of a variable to a String. - - + + - Converts the value of a String to a Variant. + + + + + + + + + + + + + + + + - + Return an array with the given range. Range can be 1 argument N (0 to N-1), two arguments (initial, final-1) or three arguments (initial,final-1,increment). @@ -573,12 +588,26 @@ - + Hashes the variable passed and returns an integer. + + + + + + + + + + + + + + @@ -1371,6 +1400,10 @@ + + + + Functions that return [Error] return OK when everything went ok. Most functions don't return error anyway and/or just print errors to stdout. @@ -7561,6 +7594,14 @@ + + + + + + + + @@ -7968,6 +8009,8 @@ + + @@ -13625,6 +13668,7 @@ returns:= "username=user&password=pass" + Returns true if the joystick button at the given index is currently pressed. Returns false otherwise. (see JOY_* constans in [InputEvent]) @@ -13635,6 +13679,31 @@ returns:= "username=user&password=pass" + + + + + + + Add a new mapping entry (in SDL2 format) to the mapping database. Optionally update already connected devices. + + + + + + + Removes all mappings from the internal db that match the given uid. + + + + + + + + + Returns true if the specified device is known by the system. This means that it sets all button and axis indices exactly as defined in [InputEvent]. Unknown joysticks are not expected to match these constants, but you can still retrieve events from them. + + @@ -13643,6 +13712,7 @@ returns:= "username=user&password=pass" + Returns the current value of the joystick axis at given index (see JOY_* enum in [InputEvent]) @@ -13651,6 +13721,16 @@ returns:= "username=user&password=pass" + Returns the name of the joystick at the specified device index + + + + + + + + + Returns a SDL2 compatible device guid on platforms that use gamepad remapping. Returns "Default Gamepad" otherwise. @@ -15479,7 +15559,7 @@ returns:= "username=user&password=pass" - + Return the metadata of the shape that collided with this body. If there is no collision, it will return 0, so collisions must be checked first with [method is_colliding]. Aditionally, this metadata can not be set with [method Object.set_meta], it must be set with [method Physics2DServer.body_set_shape_metadata]. @@ -18971,6 +19051,8 @@ returns:= "username=user&password=pass" + + @@ -19138,7 +19220,7 @@ returns:= "username=user&password=pass" - + @@ -20178,6 +20260,14 @@ returns:= "username=user&password=pass" Return the list of signals as an array of dictionaries. + + + + + + + + @@ -21601,6 +21691,10 @@ returns:= "username=user&password=pass" + + + + @@ -29631,6 +29725,14 @@ This method controls whether the position between two cached points is interpola + + + + + + + + @@ -33335,6 +33437,12 @@ This method controls whether the position between two cached points is interpola + + + + + + -- cgit v1.2.3