How?
I googled for it but couldn't find anything that works in any system supported by LÖVE.
Any idea?
Clipboard from Lua/Löve but system independant?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Clipboard from Lua/Löve but system independant?
Not possible with plain Lua from LÖVE. You might be able to do it by implementing the whole functionality in C. The C would have to be platform-specific (win, mac, linux). I don't recommend it.
When I write def I mean function.
Re: Clipboard from Lua/Löve but system independant?
Fok.kikito wrote:Not possible with plain Lua from LÖVE. You might be able to do it by implementing the whole functionality in C. The C would have to be platform-specific (win, mac, linux). I don't recommend it.
Yes, I found some Wondows C implementation for this, but not for Penguins or Apples.
Do you glimpse any solution for this, without using (too much) 3rd party libs?
Re: Clipboard from Lua/Löve but system independant?
Clipboard support is not as easy as you would expect, because every system does it differently. Sometimes there are even more than one way to do this on one system.
However, SDL 1.3 (or 2.0) will have (a smallest common denominator) clipboard support, so once this comes around LÖVE can have it, too.
You can also have a look at how they will do it here: SDL_windowsclipboard.c, SDL_x11clipboard.c, and SDL_cocoaclipboard.m (plus a ton of other files).
Edit: Links to implementation files
However, SDL 1.3 (or 2.0) will have (a smallest common denominator) clipboard support, so once this comes around LÖVE can have it, too.
You can also have a look at how they will do it here: SDL_windowsclipboard.c, SDL_x11clipboard.c, and SDL_cocoaclipboard.m (plus a ton of other files).
Edit: Links to implementation files
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests