فهرست منبع

added getClipboard() for other platforms

Nicolas Cannasse 10 سال پیش
والد
کامیت
c1d593a21d
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      hxd/System.hx

+ 8 - 1
hxd/System.hx

@@ -150,7 +150,6 @@ class System {
 
 	public static function getClipboard() : String {
 		#if flash
-		trace(flash.desktop.Clipboard.generalClipboard.getData(flash.desktop.ClipboardFormats.TEXT_FORMAT));
 		return flash.desktop.Clipboard.generalClipboard.getData(flash.desktop.ClipboardFormats.TEXT_FORMAT);
 		#else
 		return "";
@@ -267,6 +266,10 @@ class System {
 		callb();
 	}
 
+	public static function getClipboard() : String {
+		return "";
+	}
+
 	public static function setNativeCursor( c : Cursor ) {
 		var canvas = js.Browser.document.getElementById("webgl");
 		if( canvas != null ) {
@@ -355,6 +358,10 @@ class System {
 		Sys.exit(0);
 	}
 
+	public static function getClipboard() : String {
+		return "";
+	}
+
 	static var win : sdl.Window;
 	static var windowWidth = 800;
 	static var windowHeight = 600;