-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCManager.h
More file actions
executable file
·41 lines (35 loc) · 855 Bytes
/
CManager.h
File metadata and controls
executable file
·41 lines (35 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "CInputGrabberWin.h"
#include "CHotkeyManager.h"
#include "IScreenHandler.h"
#include "CConfigHandler.h"
#include "IInputGrabber.h"
#include "CSem.h"
#include <vector>
class CManager: public IInputGrabberOut
{
unsigned int nActiveScreenID;
bool bBorderlessModeActive;
std::vector<IScreenHandlerIn*> vectScreenp;
void HandleHotkey(const HotkeyInfo& hk);
public:
CManager(const char* cpExecName);
~CManager();
bool MouseUpdated(int, int, int, int, bool);
bool KeyboardUpdated(unsigned char, bool);
IInputGrabberIn* itsInputGrabber;
CHotkeyManager itsHotkeyManager;
private:
class CSysCmdExecuter
{
public:
CSysCmdExecuter();
~CSysCmdExecuter();
bool ExecuteCmd(const char* par_cpCmd);
private:
CSem itsSem;
void ActiveFunction(CSem* itsSem);
const char* command;
};
CSysCmdExecuter itsCmdExecuter;
};