void Logger::printOptions(FILE* file){ fprintf(file,"# With Fead back \n"); fprintf(file,"%s \n",printBool(m_feedback)); fprintf(file,"# With Visible Trajectory \n"); fprintf(file,"%s \n",printBool(m_traj_visible)); }
void CSettings::run() { while (true) { if (Engine()->initialized()) { if (GetAsyncKeyState(trigger_key)) { triggerEnabled = !triggerEnabled; printBool("Trigger is now", triggerEnabled); Sleep(150); } if (GetAsyncKeyState(radar_key)) { radarEnabled = !radarEnabled; printBool("Radar is now", radarEnabled); Sleep(150); } } Sleep(50); } }
QString QGLInfo::reportQtGLFeatures() const { QString d; d += printBool("QGLFormat::hasOpenGL: ", QGLFormat::hasOpenGL()); d += printBool("QGLFormat::hasOpenGLOverlays: ", QGLFormat::hasOpenGLOverlays()); d += printBool("QGLPixelBuffer::hasOpenGLPbuffers: ", QGLPixelBuffer::hasOpenGLPbuffers()); d += printBool("QOpenGLFramebufferObject::hasOpenGLFramebufferObjects: ", QOpenGLFramebufferObject::hasOpenGLFramebufferObjects()); d += printBool("QOpenGLFramebufferObject::hasOpenGLFramebufferBlit: ", QOpenGLFramebufferObject::hasOpenGLFramebufferBlit()); d += printBool("QGLShaderProgram::hasOpenGLShaderPrograms: ", QGLShaderProgram::hasOpenGLShaderPrograms()); return d; }
QString QGLInfo::reportQtGLFeatures() const { QString d; d += printBool("QGLFormat::hasOpenGL: ", QGLFormat::hasOpenGL()); d += printBool("QGLFormat::hasOpenGLOverlays: ", QGLFormat::hasOpenGLOverlays()); d += printBool("QGLPixelBuffer::hasOpenGLPbuffers: ", QGLPixelBuffer::hasOpenGLPbuffers()); d += printBool("QGLFramebufferObject::hasOpenGLFramebufferObjects: ", QGLFramebufferObject::hasOpenGLFramebufferObjects()); d += printBool("QGLFramebufferObject::hasOpenGLFramebufferBlit: ", QGLFramebufferObject::hasOpenGLFramebufferBlit()); #if !defined(QT_OPENGL_ES_1_CL) && !defined(QT_OPENGL_ES_1) d += printBool("QGLShaderProgram::hasOpenGLShaderPrograms: ", QGLShaderProgram::hasOpenGLShaderPrograms()); #endif return d; }
void CurrentState::printEndStops() { Serial.print("R81"); Serial.print(" XA"); printBool(endStopState[0][0]); Serial.print(" XB"); printBool(endStopState[0][1]); Serial.print(" YA"); printBool(endStopState[1][0]); Serial.print(" YB"); printBool(endStopState[1][1]); Serial.print(" ZA"); printBool(endStopState[2][0]); Serial.print(" ZB"); printBool(endStopState[2][1]); //Serial.print("\r\n"); printQAndNewLine(); }
void problem3_19(){ std::string str; std::getline(std::cin, str); bool answer = validateBrackets(str, "()[]{}"); printBool(answer); }
void problem3_17(){ bool answer = isSymmetrical('&', std::cin, '@'); printBool(answer); }