Skip to content
Commit 5b49d551 authored by Andrew Price's avatar Andrew Price
Browse files

js-duk: Implement input events

Replaces bind(K_BIND_INPUT, ...).

    function handler(ev)
    {
            switch (ev.type) {
            ...
            case "input":
                    line = ev.data;
                    mw.print("You inputted: " + line);
                    mw.say(" " + line + " ");
                    return false; // Suppress normal processing
            ...
            }
    }
    mw.onevent.push(handler);
parent 4dbf0632
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment