+//! gets text from the primary selection\r
+const c8* COSOperator::getTextFromPrimarySelection() const\r
+{\r
+#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_)\r
+#if SDL_VERSION_ATLEAST(2, 25, 0)\r
+ if (sdl_supports_primary_selection) {\r
+ static char *text = nullptr;\r
+ if (text)\r
+ SDL_free(text);\r
+ text = SDL_GetPrimarySelectionText();\r
+ return text;\r
+ }\r
+#endif\r
+ return 0;\r
+\r
+#elif defined(_IRR_COMPILE_WITH_X11_DEVICE_)\r
+ if ( IrrDeviceLinux )\r
+ return IrrDeviceLinux->getTextFromPrimarySelection();\r
+ return 0;\r
+\r
+#else\r
+\r
+ return 0;\r
+#endif\r
+}\r
+\r
+\r