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