Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
sdl_input_strategy.h
Go to the documentation of this file.
1#pragma once
2
3#include <SDL3/SDL_keycode.h>
6
7#include <map>
8
9class SDLInputStrategy : public IInput {
10 public:
11 void register_events(std::map<KeyCode, KeyState>& key_states,
12 MouseState& mouse_state) override;
13
14 private:
21 static KeyCode sdl_to_keycode(SDL_Keycode key);
22
30 static MouseButton sdl_to_mouse_button(Uint8 button);
31};
Definition i_input.h:9
Definition sdl_input_strategy.h:9
void register_events(std::map< KeyCode, KeyState > &key_states, MouseState &mouse_state) override
Registers necessary event listeners with the underlying system.
KeyCode
Definition key_code.h:5
MouseButton
Definition mouse_button.h:5
Aggregates all mouse-related state information.
Definition mouse_state.h:61