I’m trying to detect a few specific keys in my plugin to see if the user presses one of them while using our graph. But I can’t seem to figure out how to use it. If I define it like this in my graph Component:
bool keyStateChanged (bool isKeyDown) override;
then I get an error when compiling that it hides an overloaded virtual function which has two parameters instead of one. But if I define it like this (and make my graph Component derive from KeyListener):
bool keyStateChanged (bool isKeyDown, Component* originatingComponent) override;
then it says the same thing, only now that it hides an overloaded virtual function which has only one parameter instead of two. I’m confused.