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
9
Ion::Events::Event
Ion::Events::getEvent
(
int
* timeout) {
10
int
c
= getchar();
11
if
(
c
==
EOF
) {
12
exit(0);
13
}
else
{
14
return
Ion::Events::Event
(
c
);
15
}
16
}
Ion::Events::getEvent
Event getEvent(int *timeout)
Definition:
events.cpp:12
events.h
EOF
#define EOF
Definition:
stdio.h:6
Ion::Events::Event
Definition:
events.h:9
c
c(generic_all_nodes)
stdio.h
stdlib.h
epsilon
ion
src
shared
events_stdin.cpp
Generated by
1.8.14