#define YoYo_AddVirtualKey /* * YoYo_AddVirtualKey(<[Real] X>, <[Real] Y>, <[Real] Width>, <[Real] Height>, <[Real] Keycode>); * Emulate a key on screen */ var iObj, mCode; mCode = "if (mouse_x > view_xview[0] + x && mouse_y > view_yview[0] + y && mouse_x < view_xview[0] + x + " + string(argument2) + " && mouse_y < view_yview[0] + y + " + string(argument3) + ") "; // Create the object iObj = object_add(); object_set_persistent(iObj,true); object_event_add(iObj,ev_mouse,ev_global_left_press,mCode + "keyboard_key_press(" + string(argument4) + ");"); object_event_add(iObj,ev_mouse,ev_global_left_release,mCode + "keyboard_key_release(" + string(argument4) + ");"); // Create the instance return instance_create(argument0,argument1,iObj); #define YoYo_DeleteVirtualKey /* * YoYo_DeleteVirtualKey(<[Real] Handle>); * Deletes a virtual key */ with(argument0) instance_destroy(); return true; #define YoYo_ShowVirtualKey /* * YoYo_ShowVirtualKey(<[Real] Handle>); * Shows a virtual key * Actual functionality is unknown */ with(argument0) visible = true; return true; #define YoYo_HideVirtualKey /* * YoYo_HideVirtualKey(<[Real] Handle>); * Hides a virtual key * Actual functionality is unknown */ with(argument0) visible = false; return true; #define YoYo_LoginAchievements /* * YoYo_LoginAchievements(); * Logs into the users Apple Game Center's account */ return false; #define YoYo_LogoutAchievements /* * YoYo_LogoutAchievements(); * Logs out of the users Apple Game Center's account */ return false; #define YoYo_PostAchievement /* * YoYo_PostAchievement(<[String] Name>, <[Real] Value>); * Posts an achievement */ return false; #define YoYo_PostScore /* * YoYo_PostScore(<[String] Name>, <[Real] Value>); * Posts a score */ return false; #define YoYo_AchievementsAvailable /* * YoYo_AchievementsAvialable(<[String] Name>, <[Real] Value>); * Returns if achievements are avialable * Actual function is unknown, it's assumed this means the user * has Apple's Game Center account information stored */ return false; #define YoYo_OpenURL /* * YoYo_OpenURL(<[String] URL>); * Open's a website using the current iOS's default browser */ if (string_pos("http://",string_lower(argument0))) return execute_shell(argument0,""); return execute_shell("http://" + argument0,"");