MCPcopy Create free account
hub / github.com/ccMSC/ckb / programAction

Method programAction

src/ckb/keyaction.cpp:163–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163QString KeyAction::programAction(const QString& onPress, const QString& onRelease, int stop){
164 // URL-encode the commands and place them in the string (":" and "+" are both replaced, so they won't interfere)
165 return "$program:" + QString::fromUtf8(QUrl::toPercentEncoding(onPress.trimmed())) + "+" + QString::fromUtf8(QUrl::toPercentEncoding(onRelease.trimmed())) + QString("+%1").arg(stop);
166}
167
168const static int ANIM_ONCE = 0x1, ANIM_KRSTOP = 0x2;
169

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected