8 of 365
I added some debug logging code because if you have windowed application (i.e. not a console application), standard debug output just gets sent to a black hole. Because I need to be able to print rude words to the console for debugging, I’m used to UE4′s UE_LOG() API, and I needed to pick out a short prefix for my engine stuff, I went with MEGALOG(). It’s basically the same as std::cout(), but I can make it do more stuff as needed.

I used this to hook up the very first real input:

In action:

Whenever I hit any key, it will print a string to the console. Also im 12.




