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

Commit ed2eed6

Browse files
committed
Merge branch 'dev'
2 parents ec60dc7 + 6b961b9 commit ed2eed6

File tree

123 files changed

+2931
-816
lines changed

Some content is hidden

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

123 files changed

+2931
-816
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center"><img src="https://raw.githubusercontent.com/JujuAdams/input/master/LOGO.png" style="display:block; margin:auto; width:300px"></p>
2-
<h1 align="center">Input 5.1.2</h1>
2+
<h1 align="center">Input 5.2.0 beta 3</h1>
33

44
<p align="center">Comprehensive cross-platform input for GameMaker Studio 2022.5 by <a href="http://www.jujuadams.com/"><b>@jujuadams</b></a> and <a href="https://offalynne.neocities.org/"><b>@offalynne</b></a></p>
55

animcurves/curve_test_vibration/curve_test_vibration.yy

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

datafiles/controllertypes.csv

Lines changed: 22 additions & 19 deletions
Large diffs are not rendered by default.

datafiles/sdl2.txt

Lines changed: 56 additions & 25 deletions
Large diffs are not rendered by default.

input.yyp

Lines changed: 83 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
if (INPUT_MULTIPLAYER_ABORT_CALLBACK == undefined)
2+
{
3+
__input_error("INPUT_MULTIPLAYER_ABORT_CALLBACK must be defined for this test case");
4+
}
5+
16
//Start the JOIN source mode
27
//This automatically assigns sources to players as they join the game by pressing something on a gamepad/keyboard/mouse
38
input_source_mode_set(INPUT_SOURCE_MODE.JOIN);
4-
input_multiplayer_params_set(2, 2);
9+
input_multiplayer_params_set(2, 2);

objects/obj_example_mp_join/Draw_0.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!input_player_connected(0))
1313
}
1414
else
1515
{
16-
_string += "Player 1: Joined (press " + input_binding_get_icon(input_binding_get("cancel", 0)) + " to leave)\n";
16+
_string += "Player 1: Joined (press " + input_binding_get_icon(input_binding_get("cancel", 0), 0) + " to leave)\n";
1717
_string += "Using " + (input_source_using(INPUT_GAMEPAD, 0)? input_gamepad_get_description(input_player_get_gamepad(0)) : "keyboard + mouse") + "\n";
1818
_string += "\n";
1919

@@ -25,7 +25,7 @@ else
2525
}
2626
else
2727
{
28-
_string += "Player 2: Joined (press " + input_binding_get_icon(input_binding_get("cancel", 1)) + " to leave)\n";
28+
_string += "Player 2: Joined (press " + input_binding_get_icon(input_binding_get("cancel", 1), 1) + " to leave)\n";
2929
_string += "Using " + (input_source_using(INPUT_GAMEPAD, 1)? input_gamepad_get_description(input_player_get_gamepad(1)) : "keyboard + mouse") + "\n";
3030
_string += "\n";
3131
}

objects/obj_example_rebinding/Step_0.gml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ if (pause)
99
//Only allow the player to navigate the menu if we're not rebinding anything
1010
if (!input_binding_scan_in_progress())
1111
{
12-
//Move the menu selection up and down...
13-
menu_selection += input_check_pressed("down");
14-
menu_selection -= input_check_pressed("up");
15-
16-
//...and also here's a bonus example for how to use input_check_repeat_opposing()!
17-
menu_selection += input_check_repeat_opposing("up", "down");
12+
//Move the menu selection up and down, example for how to use 'opposing' checkers
13+
menu_selection += input_check_opposing_pressed("up", "down") + input_check_opposing_repeat("up", "down");
1814

1915
//Make sure we wrap around the menu
2016
menu_selection = (menu_selection + 5) mod 5;

objects/obj_gamepad_tester/Draw_0.gml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
draw_set_color(input_window_has_focus()? c_white : c_gray);
2+
13
var _string = "";
24

35
_string += "Gamepad " + string(test_index) + " of " + string(gamepad_get_device_count()) + ", \"" + string(gamepad_get_description(test_index)) + "\"\n\n";

objects/obj_test_cursor/Create_0.gml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ if (INPUT_MULTIPLAYER_ABORT_CALLBACK == undefined) __input_error("INPUT_MULTIPLA
44
input_source_mode_set(INPUT_SOURCE_MODE.JOIN);
55
input_multiplayer_params_set(2, INPUT_MAX_PLAYERS);
66

7-
input_mouse_capture_set(true);
8-
window_set_cursor(cr_none);
9-
107
input_cursor_elastic_set(room_width/2, room_height/2, 0.5, all);
118
input_cursor_set(room_width/2, room_height/2, all);
129
input_cursor_limit_circle(room_width/2, room_height/2, 200, all);

0 commit comments

Comments
 (0)