Skip to content

Instantly share code, notes, and snippets.

@johan-bjareholt
Last active August 29, 2015 14:06
Show Gist options
  • Save johan-bjareholt/3b2432c42a04f99f83af to your computer and use it in GitHub Desktop.
Save johan-bjareholt/3b2432c42a04f99f83af to your computer and use it in GitHub Desktop.
class EventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(const SEvent& event)
{
return false;
}
};
/*
Inside the start loop
*/
int load(){
EventReceiver eventReceiver;// = EventReceiver();
// Create video device
device =
createDevice( video::EDT_OPENGL, dimension2d<u32>(640, 480), 16,
fullscreen, stencilbuffer, vsync, &eventReceiver);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment