git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4296
d7cf8633-e32d-0410-b094-
e92efae38249
void Sys_SendKeyEvents (void);
// Perform Key_Event () callbacks until the input que is empty
+char *Sys_GetClipboardData (void);
+
#endif
#endif
}
+char *Sys_GetClipboardData (void)
+{
+ return NULL;
+}
+
int main (int argc, const char **argv)
{
double frameoldtime, framenewtime;
Sleep(milliseconds);
}
+char *Sys_GetClipboardData (void)
+{
+ char *data = NULL;
+ char *cliptext;
+
+ if (OpenClipboard (NULL) != 0)
+ {
+ HANDLE hClipboardData;
+
+ if ((hClipboardData = GetClipboardData (CF_TEXT)) != 0)
+ {
+ if ((cliptext = GlobalLock (hClipboardData)) != 0)
+ {
+ data = malloc (GlobalSize(hClipboardData)+1);
+ strcpy (data, cliptext);
+ GlobalUnlock (hClipboardData);
+ }
+ }
+ CloseClipboard ();
+ }
+ return data;
+}
+
/*
==============================================================================
/* return success of application */
return true;
}
-