B
B.Mejlvang
Guest
im having trouble with my virtual keyboard in my game.
it is meant to be be run on android.
this is the code i have in my virtual keboards a- key
global.a = virtual_key_add(20, 20, 30, 48,ord("A");
virtual_key_show(global.a)
my program prints my key presses to the screen but when i use my virtual keyboard it will print a blank space. if i set it to print the keycode instead it will print 0.
when i run it on pc and press a physical key, and then the virtual key, it will print the key that i pressed previously.
if i use this code
global.a = virtual_key_add(20, 20, 30, 48,vk_left;
virtual_key_show(global.a)
it will run the left key event so i cant see why it shouldn't work with ord("A")
can anybody help me with this because i fell like i have tried everything
it is meant to be be run on android.
this is the code i have in my virtual keboards a- key
global.a = virtual_key_add(20, 20, 30, 48,ord("A");
virtual_key_show(global.a)
my program prints my key presses to the screen but when i use my virtual keyboard it will print a blank space. if i set it to print the keycode instead it will print 0.
when i run it on pc and press a physical key, and then the virtual key, it will print the key that i pressed previously.
if i use this code
global.a = virtual_key_add(20, 20, 30, 48,vk_left;
virtual_key_show(global.a)
it will run the left key event so i cant see why it shouldn't work with ord("A")
can anybody help me with this because i fell like i have tried everything