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.
27 lines
717 B
27 lines
717 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;
|
|
Texture2D *cursorTextures;
|
|
Sprite *cursorSprite;
|
|
} 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 |