Drell
Member
Title, I'm trying to add a font for displaying the current keyboard mappings in the help sections as Steam requires this for completed games. To do so, I'm trying to add a font from a sprite which works for the vast majority of the keys. Specifically, the numeric value of each mapped key is stored in a ds_map, and then chr() is called to convert that key to a value the font understands. However, font_add_sprite_ext() seems to be processing any form of vk_enter as a \r instead of adding it as the enter character for the font. Here's my code:
I believe that since chr(vk_enter) returns "\r" which font_add_sprite_ext() is not recognizing. I've tried doing @"
" as well to no avail. Is there anyway to add the enter key to a font_add_sprite_ext()?
GML:
#macro fon_Buttons_Keyboard font_add_sprite_ext(spr_Buttons_Keyboard,"abcdefghim`kQWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,.? "+chr(vk_enter)+"-.$#\"!%'&(jklnopqrstuvw",false,1)
" as well to no avail. Is there anyway to add the enter key to a font_add_sprite_ext()?