Provide C functions and C++ functions to convert a SDL_Event to a string for tracing (debug).
The functions to convert a SDL event to a string is located at the directory evt2str. The directory evt2str includes the header and C-file. The CPP-file only includes the C-File. For a C project simple copy the files from evt2str to your project. The CPP file can be deleted. For a C++ project copy the files from evt2str and delte the .cpp file and rename the .c file to .cpp or use the original cpp file. In this case the c file is also needed because the original cpp file includes the c file.
The C++ version has additional functions which are only available at C++ (checked with
the macro __cplusplus
which only exist at C++).
zlib license