You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
660 B

#ifndef INPUTHANDLER_H_
#define INPUTHANDLER_H_
#include "raylib.h"
#include "../sprite.h"
#include "../List/list.h"
#include "../IsometricMap/isometricMap.h"
typedef struct InputHandler{
int pressed;
Vector2 rectStart;
Vector2 cursorPos;
Vector2 cursorWorldPos;
int selectedLayer;
} InputHandler;
void mouseInput(InputHandler *inputHandler, List *sprites, Texture2D *texture, Camera2D *camera, IsometricMap **layers);
void keyboardInput(InputHandler *inputHandler, Camera2D *camera);
void DrawRect(Vector2 rectStart, Vector2 *mousePosition);
void ChangeIdOfSelectedTile(InputHandler *inputHandler, IsometricMap *map, int id);
#endif