Hi, I've tried using the keyboard_key_press function to simulate key presses in android since I'm porting a game I made in GM 8.1 and I use a lot of keyboard_check_press invocations in the code. I was wondering if it's possible to send virtual keystrokes with keyboard_key_press so keyboard_check_pressed detects the event.
If anyone has tried this please enlighten me, so if it doesn't work that way I continue replacing the keyboard_check_pressed invocations with direct readings of the state of the on-screen controls I'm making.
Thanks for any replies!
Anyone has succeded using this function so far?
Actually, what I'd like to know if keyboard_key_press can be read by keyboard_check_pressed or it's impossible since they'll be always be out of sync. For example, if keyboard_key_press is on in the step event of one object and keyboard_check_pressed is in the step event of another object I guess the first can't reach the second because the keyboard_key_press lasts only for the step event of the first object and in the step event of object 2 is inactive.
I hope someone in the staff can help me figure this behaviour. It'd be nice if all functions that don't work in a certain platform be striked out or shown as syntax errors.