Nimbin[12]?SDL & Graphics / mapcreator / src/defaults/input.hpp

mapcreator git · master

SDL3 2.5D game and engine using assets, with map editor

sdl3 c++ game engine map-editor cmake · first commit 2025-10-31 · last commit 2026-09-07 (1 month ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-spieleentwicklung/map_creator

C++ 99.3%
git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gz
src/defaults/input.hpp 1.1 KB · 40 lines raw
#pragma once

#include <SDL3/SDL.h>
#include <iostream>
#include "defaults/defaults.hpp"
#include "cursor/animated_cursor.hpp"

class Character;


class Input {
    public:

    bool game_running  = true;
    bool game_restart  = true;
    bool click_left    = false;
    bool click_left_released = false;
    bool click_right   = false;
    bool click_right_released = false;
    bool clicked_on_map = false;
    bool pressed_shift = false;
    bool pressed_ctrl  = false;
    bool pressed_c     = false;
    bool pressed_c_released = false;
    bool pressed_return = false;
    bool pressed_return_released = false;
    bool pressed_arrowdown_released = false;
    bool pressed_arrowup_released = false;
    AnimatedCursor* cursor;
    SDL_FPoint mouse_state;
    SDL_FPoint mouse_state_raw;
    SDL_Point  mouse_game_offset;
    SDL_Point  mouse_tile_position;
    bool cursor_over_tileset;

    void update_Mousetileposition();
    //void event_InputModify(SDL_Event& event);
    //void event_InputPlay  (SDL_Event& event, Character& player);
    //void event_Input(SDL_Window* window, SDL_Rect& win_size);
};