*/
#include "reader.h"
-#include "../debug.h"
+
+#include <bear/debug.h>
+using namespace bear;
#include <iostream>
+using std::cerr;
+using std::cout;
+using std::endl;
+
#include <fstream>
#include <string>
{
*(key::sdlMap[name]) = key;
}
- cout << name << endl;
- cout << value << endl;
- cout << key << endl;
}
}
int char_pos = 0;
- int name_start;
- int name_end;
+ int name_start = 0;
+ int name_end = 0;
- int value_start;
- int value_end;
+ int value_start = 0;
+ int value_end = 0;
const char* c_str = str.c_str();
for (int i = 'A'; i <= 'Z'; i++) // uppercase
{
buf[0] = (char)i;
- keyMap[buf] = (SDLKey)i;
+ keyMap[buf] = (SDLKey)(i + 'a' - 'A');
}
for (int i = 'a'; i <= 'z'; i++) // lowercase
{