这篇教程C++ DoUpdate函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中DoUpdate函数的典型用法代码示例。如果您正苦于以下问题:C++ DoUpdate函数的具体用法?C++ DoUpdate怎么用?C++ DoUpdate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了DoUpdate函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: switchvoid InterpreterDisAsmFrame::InstrKey(wxListEvent& event){ long i = m_list->GetFirstSelected(); if(i < 0 || !CPU) { event.Skip(); return; } const u64 start_pc = PC - m_item_count*4; const u64 pc = start_pc + i*4; switch(event.GetKeyCode()) { case 'E': // TODO:: Syphurith: It is said the InstructionEditorDialog would be immediately destroyed. InstructionEditorDialog(this, pc, CPU, decoder.get(), disasm); DoUpdate(); return; case 'R': // TODO:: Syphurith: Eh Similiar for this one. RegisterEditorDialog(this, pc, CPU, decoder.get(), disasm); DoUpdate(); return; } event.Skip();}
开发者ID:Bigpet,项目名称:rpcs3,代码行数:28,
示例2: DoUpdatevoid CLiveRoomRankManager::OnUpdate(int nTimeElapse){ if (m_bHasUpdateBoard) { m_nTideUpdateTime += nTimeElapse; if (m_nTideUpdateTime >= m_nTideUpdateInterval) { m_nTideUpdateTime -= m_nTideUpdateInterval; DoUpdate(); } } else { time_t tNow = time(NULL); struct tm tmNow; LocalTime(&tNow, &tmNow); int nDailySeconds = tmNow.tm_hour * 3600 + tmNow.tm_min * 60 + tmNow.tm_sec; if (nDailySeconds >= m_nFirstUpdateTime) { DoUpdate(); m_bHasUpdateBoard = true; } }}
开发者ID:yzfrs,项目名称:ddianle_d1,代码行数:26,
示例3: switchvoid InterpreterDisAsmFrame::InstrKey(wxListEvent& event){ long i = m_list->GetFirstSelected(); if (i < 0 || !cpu) { event.Skip(); return; } const u32 start_pc = m_pc - m_item_count * 4; const u32 pc = start_pc + i * 4; switch (event.GetKeyCode()) { case 'E': { InstructionEditorDialog dlg(this, pc, cpu, m_disasm.get()); DoUpdate(); return; } case 'R': { RegisterEditorDialog dlg(this, pc, cpu, m_disasm.get()); DoUpdate(); return; } } event.Skip();}
开发者ID:DreadIsBack,项目名称:rpcs3,代码行数:30,
示例4: switchvoid InterpreterDisAsmFrame::InstrKey(wxListEvent& event){ long i = m_list->GetFirstSelected(); if(i < 0 || !CPU) { event.Skip(); return; } const u64 start_pc = PC - m_item_count*4; const u64 pc = start_pc + i*4; switch(event.GetKeyCode()) { case 'E': InstructionEditorDialog(this, pc, CPU, decoder, disasm); DoUpdate(); return; case 'R': RegisterEditorDialog(this, pc, CPU, decoder, disasm); DoUpdate(); return; } event.Skip();}
开发者ID:AMMAREN,项目名称:rpcs3,代码行数:26,
示例5: throwbool Entity::Update( float ticks ) throw(std::exception){ if ( IsFlagSet( Entity::F_ENABLE )) { DoUpdate(ticks); } return false;}
开发者ID:juergen0815,项目名称:sdl-3d-chart,代码行数:7,
示例6: DoUpdate//------------------------------------------------------------------------void CVehicleSeatActionRotateTurret::Update(float frameTime){ if (!m_pUserEntity) { DoUpdate(frameTime); }}
开发者ID:joewan,项目名称:pycmake,代码行数:8,
示例7: OnCharPrintcharvoid CBCGPMaskEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { const BOOL bIsReadOnly = ((GetStyle() & ES_READONLY) == ES_READONLY); if (bIsReadOnly) { CBCGPEdit::OnChar(nChar, nRepCnt, nFlags); return; } TCHAR chChar = (TCHAR) nChar; if (_istprint(chChar) && !(::GetKeyState(VK_CONTROL)&0x80)) { OnCharPrintchar(nChar, nRepCnt, nFlags); return; } else if ((nChar == VK_DELETE || nChar == VK_BACK) && (!m_strMask.IsEmpty())) { return; } int nBeginOld, nEndOld; CBCGPEdit::GetSel(nBeginOld, nEndOld); CBCGPEdit::OnChar(nChar, nRepCnt, nFlags); DoUpdate (TRUE, nBeginOld, nEndOld);}
开发者ID:cugxiangzhenwei,项目名称:WorkPlatForm,代码行数:27,
示例8: timeoutbool CTUI::Run(int delay){ if (m_bQuit) return false; timeout(delay); // Handle keys chtype key = getch(); if (key != static_cast<chtype>(ERR)) // Input available? { if (!m_pWinManager->HandleKey(key) && IsEscape(key)) return false; } Move(m_CursorPos.first, m_CursorPos.second); while (!m_QueuedDrawWidgets.empty()) { CWidget *w = m_QueuedDrawWidgets.front(); m_QueuedDrawWidgets.pop_front(); // Draw after widget has been removed from queue, this way the widget or childs from the // widget can queue themselves while being drawn. w->Draw(); if (m_QueuedDrawWidgets.empty()) DoUpdate(); // Commit real drawing after last widget } return true;}
开发者ID:BackupTheBerlios,项目名称:nixstaller-svn,代码行数:34,
示例9: SPU_DisAsmvoid InterpreterDisAsmFrame::OnSelectUnit(wxCommandEvent& event){ CPU = (PPCThread*)event.GetClientData(); delete decoder; //delete disasm; decoder = nullptr; disasm = nullptr; if(CPU) { if(CPU->GetType() != PPC_THREAD_PPU) { SPU_DisAsm& dis_asm = *new SPU_DisAsm(*CPU, InterpreterMode); decoder = new SPU_Decoder(dis_asm); disasm = &dis_asm; } else { PPU_DisAsm& dis_asm = *new PPU_DisAsm(*CPU, InterpreterMode); decoder = new PPU_Decoder(dis_asm); disasm = &dis_asm; } } DoUpdate();}
开发者ID:Deidara387,项目名称:rpcs3,代码行数:27,
示例10: FbLogWarningint FbUpdateItem::Execute(){ FbLogWarning(_("Update collection"), m_url); bool ok = FbInternetBook::Download(m_url, m_filename); if (ok) ok = OpenZip(); if (ok) return DoUpdate(); return 0;}
开发者ID:EvgeniiFrolov,项目名称:myrulib,代码行数:8,
示例11: SPUDecodervoid InterpreterDisAsmFrame::OnSelectUnit(wxCommandEvent& event){ CPU = (CPUThread*)event.GetClientData(); decoder.reset(); disasm = nullptr; class SPUDecoder : public CPUDecoder { std::unique_ptr<SPUDisAsm> disasm; public: SPUDecoder(SPUDisAsm* disasm) : disasm(disasm) { } virtual u32 DecodeMemory(const u32 address) override { disasm->do_disasm(vm::ps3::read32(address)); return 4; } }; if(CPU) { switch(CPU->get_type()) { case CPU_THREAD_PPU: { PPUDisAsm* dis_asm = new PPUDisAsm(CPUDisAsm_InterpreterMode); decoder = std::make_unique<PPUDecoder>(dis_asm); disasm = dis_asm; } break; case CPU_THREAD_SPU: case CPU_THREAD_RAW_SPU: { SPUDisAsm* dis_asm = new SPUDisAsm(CPUDisAsm_InterpreterMode); decoder = std::make_unique<SPUDecoder>(dis_asm); disasm = dis_asm; } break; case CPU_THREAD_ARMv7: { //ARMv7DisAsm& dis_asm = *new ARMv7DisAsm(CPUDisAsm_InterpreterMode); //decoder = new ARMv7Decoder(dis_asm); //disasm = &dis_asm; } break; } } DoUpdate();}
开发者ID:Bigpet,项目名称:rpcs3,代码行数:58,
|