6 const auto state = SDL_GetKeyboardState(
nullptr);
7 return state[keycode] == 1;
11 const auto state = SDL_GetMouseState(
nullptr,
nullptr);
12 return (state & SDL_BUTTON_MASK(button)) != 0;
17 SDL_GetMouseState(&x,
nullptr);
18 return static_cast<int32_t
>(x);
23 SDL_GetMouseState(
nullptr, &y);
24 return static_cast<int32_t
>(y);
29 SDL_GetMouseState(&x, &y);
Core systems of the engine are here.
CoriKeycode
This is a adaptation of SDL3 scancodes. Taken from 'SDL_scancode.h'.
enum Cori::Core::CoriMouseCode CoriMouseKeycode
An enum of all available mouse buttons.