11 for (
int i=0; i<255; i++) {
13 if (e.name() !=
nullptr && std::string(e.name()) == name) {
20 int main(
int argc,
char * argv[]) {
21 std::string eventName;
22 while (std::getline(std::cin, eventName)) {
25 std::cerr <<
"Error: Could not recognize event \"" << eventName <<
"\"" << std::endl;
28 std::cout << (
unsigned char)eventIndex;
int eventIndexFromName(std::string name)
int main(int argc, char *argv[])