aaronshaf / callbag-keyboard

Callbag source for the keyboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn add callbag-keyboard
const pipe = require("callbag-pipe");
const forEach = require("callbag-for-each");
const keyboard = require("callbag-keyboard");

pipe(
  keyboard,
  forEach(({ keysDown }) => {
    // have fun
    // keysDown is a Set
  })
);

If you're blessed with the pipeline operator:

keyboard
  |> forEach({ keysDown }) => {
    // have fun
  });

Learn more

About

Callbag source for the keyboard

License:MIT License


Languages

Language:JavaScript 94.3%Language:HTML 5.7%