The-Powder-Toy/.github
Tamás Bálint Misius fb9cba0d01
Some native clipboard support for some platforms
I was hoping SDL2 would get this functionality eventually, but nope, proper clipboard support is staged for SDL3, which we're not going to see much of for at least a few more months. This will have to do for 98.0. The feature can be disabled at runtime from powder.pref.

Implementation status:

 - windows (via winapi): has the most friendly api so of course the implementation is flawless and uses every available optimization >_>
 - macos (via cocoa): I'm bad at cocoa so this is only as good as absolutely necessary; TODO: on-demand rendering
 - x11 (via xclip): I am NOT implementing icccm2; TODO: remove reliance on external tools
 - wayland (via wl-clipboard): oh god wayland oh why, you're almost as bad as x11; TODO: remove reliance on external tools
 - android: TODO; is there even a point?
 - emscripten: TODO; the tricky bit is that in a browser we can only get clipboard data when the user is giving it to us, so this will require some JS hackery that I'm not mentally prepared for right now; also I think the supported content types are very limited and you can't just define your own

x11 and wayland support are handled by a common backend which delegates clipboard management to xclip-like external programs, such as xclip itself or wl-clipboard, and can load custom command line templates from powder.pref for use with other such programs.
2023-12-13 21:49:35 +01:00
..
workflows Customize ghactions job names 2023-12-03 18:28:11 +01:00
.gitignore Update tpt-libs, add support for android 2022-04-14 21:18:21 +02:00
build.sh Add a --backend=vs job to the ghactions workflow 2023-12-03 18:17:26 +01:00
emscripten-ghactions.ini Emscripten: Add target, update tpt-libs 2023-08-22 00:26:31 +02:00
macaa64-ghactions.ini Some native clipboard support for some platforms 2023-12-13 21:49:35 +01:00
mingw-ghactions.ini Fix mingw-on-linux builds 2021-12-24 22:47:57 +01:00
mod_id.txt Bring back mod_id.txt 2022-12-19 15:42:47 +01:00
prepare.py Customize ghactions job names 2023-12-03 18:28:11 +01:00
starcatcher-publish.sh Fix workflows with complicated publish passwords 2023-10-24 20:31:25 +02:00
starcatcher-release.sh Fix starcatcher uploads 2022-09-11 01:03:53 +02:00
vs-env.sh Target v141 toolset with msvc, update tpt-libs 2022-10-29 08:42:39 +02:00