Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.
/ Input Public archive

Commit c7a8adb

Browse files
committed
Adds double press checkers
1 parent e10821b commit c7a8adb

21 files changed

+454
-40
lines changed

β€Žinput.yypβ€Ž

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
input_default_key(vk_down, VERB.DOWN);
2+
3+
input_player_source_set(INPUT_SOURCE.KEYBOARD_AND_MOUSE);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var _string = "";
2+
_string += "Pressed = " + string(input_check_pressed(VERB.DOWN)) + "\n";
3+
_string += "Held = " + string(input_check(VERB.DOWN)) + "\n";
4+
_string += "Released = " + string(input_check_released(VERB.DOWN)) + "\n";
5+
_string += "Double P = " + string(input_check_double_pressed(VERB.DOWN)) + "\n";
6+
_string += "Double H = " + string(input_check_double(VERB.DOWN)) + "\n";
7+
_string += "Double R = " + string(input_check_double_released(VERB.DOWN)) + "\n";
8+
9+
draw_text(10, 10, _string);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
input_tick();

β€Žobjects/obj_test_double/obj_test_custom_trigger.yyβ€Ž

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žobjects/obj_test_double/obj_test_custom_triggers.yyβ€Ž

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žobjects/obj_test_double/obj_test_double.yyβ€Ž

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žobjects/obj_test_double/obj_test_save_load_reset.yyβ€Ž

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žrooms/rm_test/rm_test.yyβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žscripts/__input_class_player/__input_class_player.gmlβ€Ž

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,7 @@ function __input_class_player() constructor
6464
var _v = 0;
6565
repeat(array_length(_verb_names))
6666
{
67-
with(variable_struct_get(verbs, _verb_names[_v]))
68-
{
69-
previous_held = held;
70-
71-
held = false;
72-
value = 0.0;
73-
raw = 0.0;
74-
}
75-
67+
with(variable_struct_get(verbs, _verb_names[_v])) clear();
7668
++_v;
7769
}
7870

0 commit comments

Comments
Β (0)