My plan for this is to implement a class InputManager that every Widget and Subwidget knows about, whose methods get called every time those Widgets receive a mouse click or keyboard input. The arguments of those methods would be parameters like position, key(s), active Widget.
The Input manager would then call the associated Event Manager.
My plan for this is to implement a class
InputManager
that every Widget and Subwidget knows about, whose methods get called every time those Widgets receive a mouse click or keyboard input. The arguments of those methods would be parameters like position, key(s), active Widget. The Input manager would then call the associated Event Manager.