void CAndroidKey::XBMC_Key(uint8_t code, uint16_t key, uint16_t modifiers, uint16_t unicode, bool up) { CWinSystemAndroid* winSystem(dynamic_cast<CWinSystemAndroid*>(CServiceBroker::GetWinSystem())); if (!winSystem) return; XBMC_Event newEvent; memset(&newEvent, 0, sizeof(newEvent)); unsigned char type = up ? XBMC_KEYUP : XBMC_KEYDOWN; newEvent.type = type; newEvent.key.keysym.scancode = code; newEvent.key.keysym.sym = (XBMCKey)key; newEvent.key.keysym.unicode = unicode; newEvent.key.keysym.mod = (XBMCMod)modifiers; //CXBMCApp::android_printf("XBMC_Key(%u, %u, 0x%04X, %d)", code, key, modifiers, up); winSystem->MessagePush(&newEvent); }
std::unique_ptr<CWinSystemBase> CWinSystemBase::CreateWinSystem() { std::unique_ptr<CWinSystemBase> winSystem(new CWinSystemAmlogicGLESContext()); return winSystem; }
std::unique_ptr<CWinSystemBase> CWinSystemBase::CreateWinSystem() { std::unique_ptr<CWinSystemBase> winSystem(new CWinSystemWin32DX()); return winSystem; }