WalrusInput v1.0.1

WalrusInput is a simple but also powerful input management library for GameMaker Studio 2.3+ that allows you to create actions and assign them different inputs with ease. It also includes a bunch of other helpful extra features, like detecting double and long presses, and input recording/playback.

API Reference

This library is only tested on the Windows and HTML5 targets, but it should work on other platforms as well. It also comes with an example project that will teach you the basics.

Since I made this library primarily for my own personal projects, I will keep updating it on a regular basis.


  • Support for keyboard, controller, and mouse input.
  • Support for multiple players.
  • Easy input remapping.
  • Detecting double and long presses.
  • Detecting the hold time and the last pressed action.
  • Mapping analog sticks as digital inputs.
  • Getting the input name as a string.
  • Input recording and playback.

...and more!

Basic Usage

enum key {
input_action_add(0, key.left, vk_left, gp_stickll);
input_action_add(0, key.right, vk_right, gp_sticklr);
input_action_add(0, key.up, vk_up, gp_sticklu);
input_action_add(0, key.down, vk_down, gp_stickld);
input_action_add(0, key.jump, ord("Z"), gp_face1);
if (input_check(key.left)) {
    x -= 2;
if (input_check(key.right)) {
    x += 2;
if (input_check(key.up)) {
    y -= 2;
if (input_check(key.down)) {
    y += 2;

To learn more about how to use this library, check out the API Reference.


If you're supporting me on Patreon for the $5 tier or higher you will get this library for free. Head to my Patreon page to learn how to get your copy.


This product is licensed under the following terms:

  • You are allowed to use and modify this product for both personal or commercial purposes.
  • You are not allowed to redistribute this product or any parts of it in any shape or form if the source code is easily accessible.
  • cannot be held liable for any claim, damages, or other liabilities that may arise from, out of, or in connection with the product or the use or other dealings in the product.
  • I do not offer warranty for this product, and therefore cannot guarantee any kind of official support. That being said, if you end up having any questions I will still try to answer them.
  • You're not required to give me any credit, you paid for the product after all. That being said, it would still be nice. :)


v1.0.1 (12/03/2021):

  • Made some minor changes to the comments and the description.
  • Added the API Reference.

v1.0.0 (02/10/2020):

  • Initial release.


Buy Now$2.00 USD or more

In order to download this library you must purchase it at or above the minimum price of $2 USD. You will get access to the following files:

WalrusInput.yyz 114 kB
WalrusInput.gml 36 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.