Numworks Epsilon  1.4.1
Graphing Calculator Operating System
events_stdin.cpp
Go to the documentation of this file.
1 #include <ion/events.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4 
5 /* Use this implementation of Ion::Events::getEvent to simulate pre-recorded key
6  * presses. It streams event recorded to a file and played back from standard
7  * input. */
8 
10  int c = getchar();
11  if (c == EOF) {
12  exit(0);
13  } else {
14  return Ion::Events::Event(c);
15  }
16 }
Event getEvent(int *timeout)
Definition: events.cpp:12
#define EOF
Definition: stdio.h:6
c(generic_all_nodes)