Core: Add dedicated BitField template
This commit is contained in:
@ -62,7 +62,7 @@ public:
|
||||
int index = 0; // Can be either JoyAxis or JoyButton.
|
||||
bool pressed = false;
|
||||
float value = 0;
|
||||
BitField<HatMask> hat;
|
||||
BitField<HatMask> hat = HatMask::CENTER;
|
||||
};
|
||||
|
||||
private:
|
||||
@ -71,7 +71,7 @@ private:
|
||||
bool control_mem = false;
|
||||
bool meta_mem = false;
|
||||
|
||||
BitField<MouseButtonMask> buttons_state;
|
||||
BitField<MouseButtonMask> buttons_state = MouseButtonMask::NONE;
|
||||
|
||||
Vector<TouchPos> touch;
|
||||
MouseEventInfo mouse_event_info;
|
||||
|
||||
Reference in New Issue
Block a user