class enums are just jank when trying to work with a bitset.
This commit is contained in:
parent
41d568ab25
commit
070244269e
1 changed files with 9 additions and 7 deletions
|
@ -25,16 +25,18 @@ namespace guecs {
|
||||||
std::queue<size_t> free_indices;
|
std::queue<size_t> free_indices;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class ModBit {
|
namespace ModBit {
|
||||||
NONE=0,
|
enum {
|
||||||
hover=1,
|
NONE=0,
|
||||||
left=2,
|
hover=1,
|
||||||
right=3
|
left=2,
|
||||||
};
|
right=3
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
using Modifiers = std::bitset<16>;
|
using Modifiers = std::bitset<16>;
|
||||||
|
|
||||||
constexpr const Modifiers NO_MODS{size_t(ModBit::NONE)};
|
constexpr const Modifiers NO_MODS{0};
|
||||||
|
|
||||||
struct Clickable {
|
struct Clickable {
|
||||||
/* This is actually called by UI::mouse and passed the entity ID of the
|
/* This is actually called by UI::mouse and passed the entity ID of the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue