Ok, I'm working on that now. But I've got an error whilst testing:
void Screen::Notify(Observable* observable, void* oe){ Base_XImage::OBSERVABLE_EVENT* event_ = (Base_XImage::OBSERVABLE_EVENT*)oe; switch(*event_) { case Base_XImage::LMB_CLICK: std::cout << "Left mouse click!" << std::endl; break; case Base_XImage::RMB_CLICK: std::cout << "Right mouse click!" << std::endl; break; case Base_XImage::MOUSE_OVER: std::cout << "Mouse over!" << std::endl; break; }}
Quote:First-chance exception at 0x0041612c in SDL_Testing.exe: 0xC0000005: Access violation reading location 0x00000002.
I'm calling it like this:
Notify_Observers(this, (void*)MOUSE_OVER);
Is it because it's a constant/literal? If so, how would I get around it?