Introduction of mouse.h for z-index mouse events

This commit is contained in:
Sebastian
2024-11-21 23:58:35 +01:00
parent bfc14d5f6e
commit a6b6ff1d16
8 changed files with 42 additions and 13 deletions
+8 -3
View File
@@ -5,12 +5,17 @@ namespace VISEQ::BASE {
class Interactable{
public:
Interactable() {z_index++;}
Interactable() {
static int _z_index = 0;
z_index = _z_index;
_z_index++;
}
virtual ~Interactable() {}
inline static bool is_hovering = false;
bool is_hovering = false;
inline static int z_index = 0;
int z_index = 0;
inline static int z_hovering = 0;
virtual bool hovering() = 0;