ArcdpsExtension
 
Loading...
Searching...
No Matches
DemoKeyBindComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "../KeyBindComponent.h"
4#include "../MainWindow.h"
5
6#include <ArcdpsUnofficialExtras/KeyBindStructs.h>
7
8namespace ArcdpsExtension {
10 public:
11 explicit DemoKeyBindComponent(MainWindow* pMainWindow)
12 : KeyBindComponent(pMainWindow) {}
13
14 protected:
15 KeyBinds::Key& getKeyBind() override;
16 bool getCloseWithEsc() override;
17 bool getCloseWithEscActive() override { return true; };
18
19 private:
20 KeyBinds::Key mKeyBind;
21 };
22} // namespace ArcdpsExtension
Definition DemoKeyBindComponent.h:9
bool getCloseWithEsc() override
Definition DemoKeyBindComponent.cpp:7
KeyBinds::Key & getKeyBind() override
Definition DemoKeyBindComponent.cpp:3
DemoKeyBindComponent(MainWindow *pMainWindow)
Definition DemoKeyBindComponent.h:11
bool getCloseWithEscActive() override
Definition DemoKeyBindComponent.h:17
Definition KeyBindComponent.h:12
Definition MainWindow.h:23
Definition ArcdpsExtension.h:10