16 std::unordered_map<
SystemEvent, std::vector<BackendCallback>>* listeners)
87 std::unordered_map<SystemEvent, std::vector<BackendCallback>>* listeners_{
Interface for backend system implementations handling low-level events.
Definition i_backend_system.h:20
SDL-based implementation of the backend system interface.
Definition sdl_backend_system.h:11
float frames_per_second() const override
Retrieves the frames per second (FPS) based on the updated frame time.
void poll_events() override
Polls for new events from the backend system.
void set_cursor_to_arrow() override
Sets the cursor to the standard arrow shape.
SDLBackendSystem()=default
std::string get_clipboard_text() override
Gets the current text from the system clipboard.
void initialize_listeners(std::unordered_map< SystemEvent, std::vector< BackendCallback > > *listeners) override
void set_cursor_to_wait() override
Sets the cursor to the wait (hourglass) shape.
void init_frame_timer() override
Initializes the internal timer for frame time calculation.
void set_cursor_to_ibeam() override
Sets the cursor to the I-beam shape.
void set_cursor_to_crosshair() override
Sets the cursor to the crosshair shape.
void update_frame_time(float time_scale) override
Updates the frame time based on the elapsed time since the last frame.
float delta_time() const override
Retrieves the time elapsed since the last frame.
void set_cursor_to_hand() override
Sets the cursor to the hand shape.
SystemEvent
Definition system_event.h:5