Improve:KeyControl include cleaner.

This commit is contained in:
Fancy code 2024-06-17 12:24:59 +08:00
parent 509142a0fa
commit 833b69a823

View File

@ -14,6 +14,8 @@
*/ */
#include "KeyControl.h" #include "KeyControl.h"
#include "ILog.h" #include "ILog.h"
#include <mutex>
#include <string>
constexpr long int KEY_PRESSING = 0; constexpr long int KEY_PRESSING = 0;
constexpr unsigned int NOT_A_HOLD_KEY_ACTION = 0; constexpr unsigned int NOT_A_HOLD_KEY_ACTION = 0;
KeyControl::KeyControl() KeyControl::KeyControl()
@ -30,14 +32,17 @@ bool KeyControl::IsKeyPressing(void)
} }
const std::string VKeyControl::GetKeyName(void) const std::string VKeyControl::GetKeyName(void)
{ {
LogWarning("STATUS_CODE_VIRTUAL_FUNCTION\n");
return "undefine"; return "undefine";
} }
unsigned int VKeyControl::GetStatusCheckPeriodMs(void) unsigned int VKeyControl::GetStatusCheckPeriodMs(void)
{ {
LogWarning("STATUS_CODE_VIRTUAL_FUNCTION\n");
return 0; return 0;
} }
void VKeyControl::KeyEventTrigger(const std::string &keyName, const KeyEvent &event, const unsigned int &timeMs) void VKeyControl::KeyEventTrigger(const std::string &keyName, const KeyEvent &event, const unsigned int &timeMs)
{ {
LogWarning("STATUS_CODE_VIRTUAL_FUNCTION\n");
} }
void KeyControl::Init(void) void KeyControl::Init(void)
{ {