Introduction of mouse.h for z-index mouse events
This commit is contained in:
+8
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user