#pragma once #include #include "uiObject.h" #include "event.h" #include "keyCodes.h" #include "eventManager.h" class InputSystem { public: InputSystem(); void registerButton(Button* button); void registerText(Text* label); void registerTextInput(TextInput* input); void processInput(); private: std::vector buttons; std::vector textInputs; std::vector texts; void processMouseClick(int mouseX, int mouseY); void processInputField(int mouseX, int mouseY); void processKeyPress(Keycode); void processTextInput(const std::string& text); };