Skip to content

Commit 20bdb91

Browse files
committed
fixed incorrect enum
1 parent b8a92f8 commit 20bdb91

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

current-scripts/Demos/useful-scripts/scripts/control_manager_structs/control_manager_structs.gml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)