Add skeleton keyboard implementation for Mac and Linux

refs #206
This commit is contained in:
Roland Winklmeier
2014-04-13 18:57:45 +02:00
parent 84f389262c
commit 9e89618b45
6 changed files with 413 additions and 1 deletions

View File

@@ -7,6 +7,12 @@
#if defined(Q_OS_WIN)
#include "blackcore/win/keyboard_windows.h"
#elif defined(Q_OS_LINUX)
#include "blackcore/linux/keyboard_linux.h"
#elif defined(Q_OS_OSX)
#include "blackcore/mac/keyboard_mac.h"
#else
#error "Platform is not supported!"
#endif
namespace BlackCore
@@ -24,8 +30,10 @@ namespace BlackCore
{
#if defined(Q_OS_WIN)
m_instance = new CKeyboardWindows;
#elif defined(Q_OS_OSX)
#elif defined(Q_OS_LINUX)
m_instance = new CKeyboardLinux;
#elif defined(Q_OS_OSX)
m_instance = new CKeyboardMac;
#endif
Q_ASSERT_X(m_instance, "IKeyboard::getInstance", "Pointer to IKeyboard is NULL!");
m_instance->init();