• 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!

Windows tablets touch screen controls.

Hi,
I have a game I'm testing on a windows tablet with touchscreen controls. Virtual_keys don't work on windows, so I'm using :

if(device_mouse_check_button(0,mb_left) and position_meeting(mouse_x,mouse_y,self))
{
keyboard_key_press(ord("X"));
}
else
{
keyboard_key_release(ord("X"));
}

On the desktop it works perfect clicking the button object with the mouse. On the tablet however, I have to slightly swipe the button object with this code for it to work. Are there any ways to have the same functionality as Virtual_keys on windows tablets as with Android/ios?
 
Top