Blame onefile/keys.c

261920
261920
#include <helianthus.h></helianthus.h>
261920
261920
261920
void init() { }
261920
261920
261920
void draw() {
261920
  int count = keyEventGetCount(KEYEVENT_KEY_DOWN);
261920
  noFill();
261920
  for(int i = 0; i < count; ++i) {
261920
    text(10, 50*i, keyEventGet(KEYEVENT_KEY_DOWN, i));
261920
  }
261920
}
261920
261920
261920
int main() {
261920
  windowSetInit(&init);
261920
  windowSetDraw(&draw);
261920
  windowRun();
261920
  return 0;
261920
}