• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Virtual Keyboard Input slow and skips when typing

Lite

Member
When typing text using the virtual keyboard on mobile devices it's very easy to type quickly which results in text not actually being entered. Would this require me to up the room speed so that more steps happen per second or is that not the issue?

For example: I tap on a textbox to activate it which brings up the virtual keyboard then type "here's some random text example." and because I type at a quick speed it skips over some inputs resulting in "hre's smrandm txt xampl." instead.

The code is simple for inputs just:
Code:
if(keyboard_check_pressed(vk_anykey){
       text = text + string(keyboard_string);
       keyboard_string = "";
       if(string_width_ext(text,string_height(text),maxlen) > maxlen){    //auto line break if outside box
           var a = string_pos(" ",text);    //find last "space" and insert line break
           string_insert("\n",text,a);
       }
}
Thanks in advance! :D
 
Top