refactor: header file for every module
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef ENGINE_INPUT_H
|
||||
#define ENGINE_INPUT_H
|
||||
|
||||
#include <raylib.h>
|
||||
|
||||
typedef struct {
|
||||
Vector2 screenPosition;
|
||||
Vector2 worldPosition;
|
||||
float zoomSpeed;
|
||||
float minZoom;
|
||||
float maxZoom;
|
||||
float scaleFactor;
|
||||
float wheelMove;
|
||||
bool leftButton;
|
||||
bool rightButton;
|
||||
Texture2D cursorTexture;
|
||||
} Mouse;
|
||||
|
||||
Mouse CreateMouse(float zoomSpeed, float minZoom, float maxZoom,
|
||||
Texture2D *texture);
|
||||
void UpdateMouseScreen(Mouse *mouse);
|
||||
void UpdateMouse(Mouse *mouse, Camera2D *camera);
|
||||
Vector2 GetDirectionVector(void);
|
||||
|
||||
#endif // ENGINE_INPUT_H
|
||||
Reference in New Issue
Block a user