2023-03-10 17:34:22 -07:00
|
|
|
#ifndef ARC_GLFW_MOUSE_H_
|
|
|
|
|
#define ARC_GLFW_MOUSE_H_
|
|
|
|
|
|
2024-01-19 01:17:19 -07:00
|
|
|
#ifdef ARC_GLFW_INPUT
|
2023-03-10 17:34:22 -07:00
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
#include "arc/input/mouse.h"
|
|
|
|
|
#include "arc/math/point.h"
|
|
|
|
|
|
|
|
|
|
struct ARC_Mouse {
|
|
|
|
|
GLFWwindow *window;
|
|
|
|
|
|
|
|
|
|
ARC_Point *coords;
|
|
|
|
|
int32_t *scrollY;
|
|
|
|
|
|
|
|
|
|
ARC_MouseState *buttons;
|
|
|
|
|
uint8_t *buttonsReleased;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct ARC_MouseInfo {
|
|
|
|
|
GLFWwindow *window;
|
|
|
|
|
};
|
|
|
|
|
|
2024-01-19 01:17:19 -07:00
|
|
|
#endif // !ARC_GLFW_INPUT
|
2023-03-10 17:34:22 -07:00
|
|
|
|
|
|
|
|
#endif // !ARC_GLFW_MOUSE_H_
|