mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-02 15:53:51 +00:00
22 lines
526 B
C++
22 lines
526 B
C++
|
|
// IModifierState — abstract interface for keyboard modifier queries.
|
||
|
|
// Allows unit testing macro conditionals without real input system. Phase 4.1.
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
namespace wowee {
|
||
|
|
namespace ui {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Read-only view of keyboard modifier state for macro conditional evaluation.
|
||
|
|
*/
|
||
|
|
class IModifierState {
|
||
|
|
public:
|
||
|
|
virtual ~IModifierState() = default;
|
||
|
|
|
||
|
|
virtual bool isShiftHeld() const = 0;
|
||
|
|
virtual bool isCtrlHeld() const = 0;
|
||
|
|
virtual bool isAltHeld() const = 0;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace ui
|
||
|
|
} // namespace wowee
|