Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

If you want to do text entry, you can use winwin_keyboard_get_string - no need to map every key to a character by hand.

Also, this is somewhat unrelated, but there doesn’t appear to be an option to restrict fullscreening another window with Alt+Enter.

That’s weird, GameMaker is definitely not aware of additional windows so I guess Windows applies fullscreen mode to whatever window that’s currently active? You can disable that in Game Options ➜ Windows ➜ Graphics and handle switching yourself via keyboard_check(vk_alt) && keyboard_check_pressed(vk_enter).

Fullscreen switching is disabled on my project so it looks like it just does that regardless. Doing it in another window is pretty buggy and ends up changing the size of every window on my PC .

As for the winwin_keyboard_get_string function, that appears to be missing? I think this is true with a few other functions actually.

winwin_keyboard_set_string appears but not winwin_keyboard_get_string

Apparently the name was set the other way around, winwin_keyboard_string_get

Released a fix for alt-enter and keyboard functions.

I think this is true with a few other functions actually.

You can keep your secrets if you want

(1 edit)

Thank you!

You can keep your secrets if you want

Lolll, I didn't actually check everything, but I know winwin_keyboard_get_max_string_length is one of them, so it's probably a lot of the keyboard functions that are like that.

EDIT: winwin_keyboard_set_string might also be broken? It keeps throwing this error when I try to use it:

Variable <unknown_object>._buf(102646, -2147483648) not set before reading it.  at
gml_Script_anon@205@gml_Script_winwin_keyboard_set_string (line 9) -        buffer_write(_buf, buffer_u32, ord(_char));