File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
current-scripts/Demos/useful-scripts/scripts/control_manager_structs Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function ControlManagerPlayer() constructor {
104104
105105 function get_bindings (_control_type, _control) {
106106 if (_control_type == CONTROL_TYPE.KEYBOARD ) {
107- return keyboard_map[_control];
107+ return keyboard_map[_control];
108108 } else if (_control_type == CONTROL_TYPE.GAMEPAD ) {
109109 return gamepad_map[_control];
110110 } else {
@@ -268,10 +268,10 @@ function ControlManagerPlayer() constructor {
268268 }
269269 }
270270
271- axis_held.x = stick_dpad_held[CONTROLS .RIGHT ] - stick_dpad_held[CONTROLS .LEFT ];
272- axis_held.y = stick_dpad_held[CONTROLS .DOWN ] - stick_dpad_held[CONTROLS .UP ];
273- axis_pressed.x = stick_dpad_pressed[CONTROLS .RIGHT ] - stick_dpad_pressed[CONTROLS .LEFT ];
274- axis_pressed.y = stick_dpad_pressed[CONTROLS .DOWN ] - stick_dpad_pressed[CONTROLS .UP ];
271+ axis_held.x = stick_dpad_held[DPAD_DIRECTION .RIGHT ] - stick_dpad_held[DPAD_DIRECTION .LEFT ];
272+ axis_held.y = stick_dpad_held[DPAD_DIRECTION .DOWN ] - stick_dpad_held[DPAD_DIRECTION .UP ];
273+ axis_pressed.x = stick_dpad_pressed[DPAD_DIRECTION .RIGHT ] - stick_dpad_pressed[DPAD_DIRECTION .LEFT ];
274+ axis_pressed.y = stick_dpad_pressed[DPAD_DIRECTION .DOWN ] - stick_dpad_pressed[DPAD_DIRECTION .UP ];
275275 }
276276
277277 function clear_all_input () {
You can’t perform that action at this time.
0 commit comments