ui code -> extend 'active' system to all left/middle/right mouse buttons, rather than just min/max (left/right)

This commit is contained in:
Ryan Fleury
2024-02-07 14:20:21 -08:00
parent fb9e890653
commit b9cec99cd4
4 changed files with 118 additions and 78 deletions
+3
View File
@@ -170,6 +170,9 @@
#define DeferLoop(begin, end) for(int _i_ = ((begin), 0); !_i_; _i_ += 1, (end))
#define DeferLoopChecked(begin, end) for(int _i_ = 2 * !(begin); (_i_ == 2 ? ((end), 0) : !_i_); _i_ += 1, (end))
#define EachEnumVal(type, it) type it = (type)0; it < type##_COUNT; it = (type)(it+1)
#define EachNonZeroEnumVal(type, it) type it = (type)1; it < type##_COUNT; it = (type)(it+1)
#if LANG_CPP
# define zero_struct {}
#else