INNER CODE UNIT · JavaScript

keyup

loicbourgois/gravitle · front/alpha/index.js:153

const keyup = (e) => {
    if (bindings && bindings[e.key]) {
        universe.deactivate_thrust_for_links(bindings[e.key].link_indexes);
        document.getElementById('popup').classList.add('faded');
    } else {
        // Do nothing
    }
};

const keydown = (e) => {
    if (bindings && bindings[e.key]) {
        universe.activate_thrust_for_links(bindings[e.key].link_indexes);
    } else {
        // Do nothing
    }
};

const get_bindings = () => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…