R22: Add switchCommand() and quadSplinesHit(). Fix drawQuadSplines().