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.

26 lines
663 B

#ifndef INPUTHANDLER_H_
#define INPUTHANDLER_H_
#include "raylib.h"
#include "../Sprite/sprite.h"
#include "../IsometricMap/isometricMap.h"
#include "../game.h"
typedef struct InputHandler{
Vector2 rectStart; // hmm
Vector2 cursorPos; // position of cursor on Screen
Vector2 cursorWorldPos; // position of cursor in World
Vector2 cursorWorldTile; // Selected Tile
int selectionRectActive; //0: not active | 1: active
int drawTileId;
} InputHandler;
void mouseInput(Game *game);
void keyboardInput(Game *game);
void DrawRect(Vector2 rectStart, Vector2 mousePosition);
Vector2 GetRectangle(Vector2 rectStart, Vector2 mousePos);
#endif