#ifndef TEXTINPUT_LAYOUT_GATHER_H #define TEXTINPUT_LAYOUT_GATHER_H #include #include #include #include namespace textinput { class LayoutGather { public: LayoutGather(); ~LayoutGather(); void changeCapsLock(const u8& arg); bool isHoldingShift() const { return isHWPressedShift() || isPressedShiftB(); } u8 isHWPressedShift() const { return mbPressedShift; } u8 isPressedShiftB() const { return mbPressedShiftB; } void setHWPressedShift(const u8& arg) { mbPressedShift = arg; } class Singleton { public: static LayoutGather& getInstance() { static LayoutGather sGather; return sGather; } }; private: u8 mbCpasLock : 1; // 0x00 u8 mbPressedShift : 1; // 0x00 u8 mbPressedShiftB : 1; // 0x00 }; } // namespace textinput #endif // TEXTINPUT_LAYOUT_GATHER_H