iOS Reading touches on iOS

TheOnlyWRT

Member
So i just got game maker studio 2 working on my iphone and now i am trying to add in touch screen input. I read a little about virtual keys in the manual, and this is the code i have used:

Code:
keyShoot = virtual_key_add((window_get_width()-160), (window_get_fullscreen()-160), 160, 160, vk_space);
but i touch the screen and it doesnt do anything...... so, i am kinda clueless about how to program in touch input for ios. Thanks for the help!
 
T

TimothyAllen

Guest
window_get_fullscreen()-160
I dont use virtual keys... but i can tell you that window_get_fullscreen() returns true / false (1 / 0). Which means that line will be a negative position and probably off screen.
 
Top