I'am developing a library, that can't use Classes. I have a function I call when a get a KeyDown event and i want to call a function that i set the prototype for before in the library. The thing is, I don't want to be mandatory for the user to define this function if he doesn't want to handle any input. But the linker won't let me define a prototype without a definition or set a default empty definition. What can i do? I'am using C++ by the way...
This are the prototypes /
void keyDown(int virtual_keyCode);
void keyUp(int virtual_keyCode);