コード例 #1
0
ファイル: inputmanager.cpp プロジェクト: Evonline/ManaPlus
bool InputManager::handleAssignKey(const SDL_Event &event, int type)
{
    if (setupWindow && setupWindow->isVisible() &&
        getNewKeyIndex() > Input::KEY_NO_VALUE)
    {
        setNewKey(event, type);
        callbackNewKey();
        setNewKeyIndex(Input::KEY_NO_VALUE);
        return true;
    }
    return false;
}
コード例 #2
0
ファイル: SrtpSymCrypto.cpp プロジェクト: 0x0B501E7E/ZRTPCPP
SrtpSymCrypto::SrtpSymCrypto( uint8_t* k, int32_t keyLength, int algo ):
    key(NULL), algorithm(algo) {

    setNewKey(k, keyLength);
}