initialize arrays

This commit is contained in:
Vaxry 2024-07-09 23:27:07 +02:00
parent b44412eb9e
commit 6033c7f003

View File

@ -82,8 +82,8 @@ class IKeyboard : public IHID {
uint32_t depressed = 0, latched = 0, locked = 0, group = 0;
} modifiersState;
std::array<xkb_led_index_t, 3> ledIndexes;
std::array<xkb_mod_index_t, 8> modIndexes;
std::array<xkb_led_index_t, 3> ledIndexes = {0};
std::array<xkb_mod_index_t, 8> modIndexes = {0};
uint32_t leds = 0;
std::string hlName = "";