Lines Matching refs:stick
553 size_t stick, axis; in LoadStickCalibration() local
589 for (stick = 0; stick < 2; ++stick) { in LoadStickCalibration()
591 if (ctx->m_StickCalData[stick].axis[axis].sCenter == 0xFFF) { in LoadStickCalibration()
592 ctx->m_StickCalData[stick].axis[axis].sCenter = 0; in LoadStickCalibration()
594 if (ctx->m_StickCalData[stick].axis[axis].sMax == 0xFFF) { in LoadStickCalibration()
595 ctx->m_StickCalData[stick].axis[axis].sMax = 0; in LoadStickCalibration()
597 if (ctx->m_StickCalData[stick].axis[axis].sMin == 0xFFF) { in LoadStickCalibration()
598 ctx->m_StickCalData[stick].axis[axis].sMin = 0; in LoadStickCalibration()
604 for (stick = 0; stick < 2; ++stick) { in LoadStickCalibration()
606 ctx->m_StickExtents[stick].axis[axis].sMin = (Sint16)(SDL_MIN_SINT16 * 0.5f); in LoadStickCalibration()
607 ctx->m_StickExtents[stick].axis[axis].sMax = (Sint16)(SDL_MAX_SINT16 * 0.5f); in LoadStickCalibration()
611 for (stick = 0; stick < 2; ++stick) { in LoadStickCalibration()
613 …ctx->m_StickExtents[stick].axis[axis].sMin = -(Sint16)(ctx->m_StickCalData[stick].axis[axis].sMin … in LoadStickCalibration()
614 …ctx->m_StickExtents[stick].axis[axis].sMax = (Sint16)(ctx->m_StickCalData[stick].axis[axis].sMax *… in LoadStickCalibration()