Skip to content

Commit 61eac81

Browse files
authored
[Reviewed] [Multitouch joystick] Fix top-down mapper (#733)
* Don't show in changelog
1 parent 4a8d12f commit 61eac81

File tree

1 file changed

+21
-27
lines changed

1 file changed

+21
-27
lines changed

extensions/reviewed/SpriteMultitouchJoystick.json

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "SpriteMultitouchJoystick",
99
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_controller_joystick_arrows_direction.svg",
1010
"shortDescription": "Joysticks or buttons for touchscreens.",
11-
"version": "1.0.0",
11+
"version": "1.0.1",
1212
"description": [
1313
"Multitouch joysticks can be used the same way as physical gamepads:",
1414
"- 4 or 8 directions",
@@ -2911,7 +2911,7 @@
29112911
"conditions": [
29122912
{
29132913
"type": {
2914-
"value": "Gamepads::TopDownGamepadMapper::PropertyStickMode"
2914+
"value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode"
29152915
},
29162916
"parameters": [
29172917
"Object",
@@ -2929,8 +2929,8 @@
29292929
"parameters": [
29302930
"Object",
29312931
"TopDownMovement",
2932-
"SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier()))",
2933-
"SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier()))"
2932+
"SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier())",
2933+
"SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier())"
29342934
]
29352935
}
29362936
]
@@ -2940,7 +2940,7 @@
29402940
"conditions": [
29412941
{
29422942
"type": {
2943-
"value": "Gamepads::TopDownGamepadMapper::PropertyStickMode"
2943+
"value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode"
29442944
},
29452945
"parameters": [
29462946
"Object",
@@ -2958,8 +2958,8 @@
29582958
"parameters": [
29592959
"Object",
29602960
"TopDownMovement",
2961-
"SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier()))",
2962-
"sign(SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), ToString(Object.Behavior::PropertyJoystickIdentifier())))"
2961+
"SpriteMultitouchJoystick::JoystickAngle(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier())",
2962+
"sign(SpriteMultitouchJoystick::JoystickForce(Object.Behavior::PropertyControllerIdentifier(), Object.Behavior::PropertyJoystickIdentifier()))"
29632963
]
29642964
}
29652965
]
@@ -2969,7 +2969,7 @@
29692969
"conditions": [
29702970
{
29712971
"type": {
2972-
"value": "Gamepads::TopDownGamepadMapper::PropertyStickMode"
2972+
"value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode"
29732973
},
29742974
"parameters": [
29752975
"Object",
@@ -3007,7 +3007,7 @@
30073007
"parameters": [
30083008
"",
30093009
"Object.Behavior::PropertyControllerIdentifier()",
3010-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3010+
"Object.Behavior::PropertyJoystickIdentifier()",
30113011
"\"Left\"",
30123012
""
30133013
]
@@ -3035,7 +3035,7 @@
30353035
"parameters": [
30363036
"",
30373037
"Object.Behavior::PropertyControllerIdentifier()",
3038-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3038+
"Object.Behavior::PropertyJoystickIdentifier()",
30393039
"\"Right\"",
30403040
""
30413041
]
@@ -3063,7 +3063,7 @@
30633063
"parameters": [
30643064
"",
30653065
"Object.Behavior::PropertyControllerIdentifier()",
3066-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3066+
"Object.Behavior::PropertyJoystickIdentifier()",
30673067
"\"Up\"",
30683068
""
30693069
]
@@ -3091,7 +3091,7 @@
30913091
"parameters": [
30923092
"",
30933093
"Object.Behavior::PropertyControllerIdentifier()",
3094-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3094+
"Object.Behavior::PropertyJoystickIdentifier()",
30953095
"\"Down\"",
30963096
""
30973097
]
@@ -3136,7 +3136,7 @@
31363136
"parameters": [
31373137
"",
31383138
"Object.Behavior::PropertyControllerIdentifier()",
3139-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3139+
"Object.Behavior::PropertyJoystickIdentifier()",
31403140
"\"Left\"",
31413141
""
31423142
]
@@ -3164,7 +3164,7 @@
31643164
"parameters": [
31653165
"",
31663166
"Object.Behavior::PropertyControllerIdentifier()",
3167-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3167+
"Object.Behavior::PropertyJoystickIdentifier()",
31683168
"\"Right\"",
31693169
""
31703170
]
@@ -3192,7 +3192,7 @@
31923192
"parameters": [
31933193
"",
31943194
"Object.Behavior::PropertyControllerIdentifier()",
3195-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3195+
"Object.Behavior::PropertyJoystickIdentifier()",
31963196
"\"Up\"",
31973197
""
31983198
]
@@ -3220,7 +3220,7 @@
32203220
"parameters": [
32213221
"",
32223222
"Object.Behavior::PropertyControllerIdentifier()",
3223-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3223+
"Object.Behavior::PropertyJoystickIdentifier()",
32243224
"\"Down\"",
32253225
""
32263226
]
@@ -3248,7 +3248,7 @@
32483248
"parameters": [
32493249
"",
32503250
"Object.Behavior::PropertyControllerIdentifier()",
3251-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3251+
"Object.Behavior::PropertyJoystickIdentifier()",
32523252
"\"UpLeft\"",
32533253
""
32543254
]
@@ -3285,7 +3285,7 @@
32853285
"parameters": [
32863286
"",
32873287
"Object.Behavior::PropertyControllerIdentifier()",
3288-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3288+
"Object.Behavior::PropertyJoystickIdentifier()",
32893289
"\"UpRight\"",
32903290
""
32913291
]
@@ -3322,7 +3322,7 @@
33223322
"parameters": [
33233323
"",
33243324
"Object.Behavior::PropertyControllerIdentifier()",
3325-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3325+
"Object.Behavior::PropertyJoystickIdentifier()",
33263326
"\"DownLeft\"",
33273327
""
33283328
]
@@ -3359,7 +3359,7 @@
33593359
"parameters": [
33603360
"",
33613361
"Object.Behavior::PropertyControllerIdentifier()",
3362-
"ToString(Object.Behavior::PropertyJoystickIdentifier())",
3362+
"Object.Behavior::PropertyJoystickIdentifier()",
33633363
"\"DownRight\"",
33643364
""
33653365
]
@@ -3432,7 +3432,7 @@
34323432
},
34333433
{
34343434
"value": "Primary",
3435-
"type": "Number",
3435+
"type": "String",
34363436
"label": "Joystick name",
34373437
"description": "",
34383438
"group": "",
@@ -3805,12 +3805,6 @@
38053805
"name": "Object",
38063806
"supplementaryInformation": "SpriteMultitouchJoystick::SpriteMultitouchJoystick",
38073807
"type": "object"
3808-
},
3809-
{
3810-
"description": "Behavior",
3811-
"name": "Behavior",
3812-
"supplementaryInformation": "SpriteMultitouchJoystick::MultitouchJoystick",
3813-
"type": "behavior"
38143808
}
38153809
],
38163810
"objectGroups": []

0 commit comments

Comments
 (0)