|
@@ -284,11 +284,19 @@ class System {
|
|
|
}
|
|
|
#end
|
|
|
|
|
|
- #if hlsdl
|
|
|
+ #if (hl_ver < version("1.12.0"))
|
|
|
+ public static function getClipboardText() : String {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static function setClipboardText(text:String) : Bool {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ #elseif hlsdl
|
|
|
public static function getClipboardText() : String {
|
|
|
return sdl.Sdl.getClipboardText();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public static function setClipboardText(text:String) : Bool {
|
|
|
return sdl.Sdl.setClipboardText(text);
|
|
|
}
|
|
@@ -296,7 +304,7 @@ class System {
|
|
|
public static function getClipboardText() : String {
|
|
|
return hl.UI.getClipboardText();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public static function setClipboardText(text:String) : Bool {
|
|
|
return hl.UI.setClipboardText(text);
|
|
|
}
|