I'm trying to move the MyEventReceiver class from one of the irrlicht examples to a seperate .cpp and .h file (clean up the code), but when I then try to make an instance of it, and feed it to createDevice it gives me this:
error C2259: 'MyEventReceiver' : cannot instantiate abstract class
if that don't work, here in the forum there is a structured better class, this that you are using doesn't have resources as the use of two keys simultaneously of the keyboard
Since IEventReceiver has a pure virtual (abstract) method it can only be instantiated if all such methods have implementations. Due to your additional parameter the implementation does not match the abstract signature which is therefore still abstract. You should add a setDevice method or pass the device with an additional constructor instead.