How can I implement this with Polymorphism?
<p>My game gui api supports 2 backends. They both work similarly and use event queues. The problem is that I do not want my API to handle the whole game's events, only peek at an event and do something, then let the game do whatever with it. That's why I cannot just give it the event queue. My issue is that, I will have a method called handleEvent which will take in a pointer to the event, but for it to work for both this would have to be a void* but I feel like this is bad practice. What could I do?
Thanks</p>
