read-4017-km

cesars/4017-km/read-4017-km

No description
read-4017-km
@/read-4017-km
KM@/4017-km-dev
Getpulse
read-4017-km
KM
Get
Key
Keynumber
To use the node in your project you should have the cesars/4017-km library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {

    if(!isInputDirty<input_Get>(ctx))
        return;

    auto KM = getValue<input_KM>(ctx);

    int16_t k = KEY_NONE;
    bool  bFirst = true;

    emitValue<output_Key>(ctx, KEY_NONE);

    do {
        k = KM->read(k+1);
        if (k != KEY_NONE) {
            if (bFirst) {
                bFirst = false;
            }
            emitValue<output_Key>(ctx, k);
        }
    } while (k != KEY_NONE);
}