Skip to content

Commit 49bcd60

Browse files
authored
Input bindings use all where possible and fixing some examples (#77)
* "animation" examples input refactoring * "basics" examples input refactoring * Refactor input bindings * Update confetti example to keep only required content * Update fireworks example * Update mouse_and_touch input bindings * Clean up unlit example * Clean up screen space example * Clean up debug/profiler example
1 parent e2e384f commit 49bcd60

File tree

546 files changed

+129
-4061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

546 files changed

+129
-4061
lines changed

animation/basic_tween/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/basic_tween.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

animation/basic_tween/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/chained_tween/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/chained_tween.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

animation/chained_tween/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/cursor/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/cursor.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

animation/cursor/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/easing/example/controller.script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function on_message(self, message_id, message, sender)
5252
end
5353

5454
function on_input(self, action_id, action)
55-
if action_id == hash("left") and action.pressed then
55+
if action_id == hash("key_left") and action.pressed then
5656
change_easing_demo(self, PREVIOUS)
57-
elseif action_id == hash("right") and action.pressed then
57+
elseif action_id == hash("key_right") and action.pressed then
5858
change_easing_demo(self, NEXT)
5959
end
6060
end

animation/easing/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/easing.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

animation/easing/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/euler_rotation/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/euler_rotation.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

animation/euler_rotation/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/flipbook/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/flipbook.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

animation/flipbook/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/spine/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies#0 = https://github.com/defold/extension-spine/archive/refs/tags/3.6
77
main_collection = /example/spine.collectionc
88

99
[input]
10-
game_binding = /input/game.input_bindingc
10+
game_binding = /builtins/input/all.input_bindingc
1111
repeat_interval = 0.05
1212

1313
[display]

animation/spine/input/game.input_binding

Lines changed: 0 additions & 44 deletions
This file was deleted.

animation/spinner/game.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version = 0.1
66
main_collection = /example/spinner.collectionc
77

88
[input]
9-
game_binding = /input/game.input_bindingc
9+
game_binding = /builtins/input/all.input_bindingc
1010
repeat_interval = 0.05
1111

1212
[display]

0 commit comments

Comments
 (0)