1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-11-27 04:48:05 +11:00

app-metamachine: Native clipboard support

This commit is contained in:
20kdc 2018-09-29 10:43:46 +01:00
parent 3502cdedc2
commit 630c5f57f5
2 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,7 @@ return {
},
["app-metamachine"] = {
desc = "Virtual machine",
v = 2,
v = 3,
deps = {
"neo",
"zzz-license-pd"

View File

@ -533,6 +533,9 @@ while ((not vmBaseCoroutine) or (coroutine.status(vmBaseCoroutine) ~= "dead")) a
break
elseif ev[3] == "line" then
screensInt[id][2].line(ev[4])
elseif ev[3] == "clipboard" then
table.insert(signalStack, {ev[3], screensInt[id][1] .. "-kb", ev[4], "neo"})
break
elseif ev[3] == "touch" or ev[3] == "drag" or ev[3] == "drop" or ev[3] == "scroll" then
local x = ev[4]
local y = ev[5]