mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
23 lines
521 B
C++
23 lines
521 B
C++
|
|
// InputModifierAdapter — wraps core::Input to implement IModifierState.
|
||
|
|
// Phase 4.3 of chat_panel_ref.md.
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "ui/chat/i_modifier_state.hpp"
|
||
|
|
|
||
|
|
namespace wowee {
|
||
|
|
namespace ui {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Concrete adapter from core::Input → IModifierState.
|
||
|
|
* Reads real keyboard state from SDL.
|
||
|
|
*/
|
||
|
|
class InputModifierAdapter : public IModifierState {
|
||
|
|
public:
|
||
|
|
bool isShiftHeld() const override;
|
||
|
|
bool isCtrlHeld() const override;
|
||
|
|
bool isAltHeld() const override;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace ui
|
||
|
|
} // namespace wowee
|