mapcreator git · master
SDL3 2.5D game and engine using assets, with map editor
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gzsrc/defaults/input.hpp 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);
};