Skip to content
OE_controller.cpp 29.2 KiB
Newer Older
					{
						comm.addPoints(dxys, 15);
						if (!comm.ack()) std::cerr << "Can't add points" << std::endl;
						return;
					}
					dxys[2*cmdPoints] = 0x80|int7(bigdx);
					dxys[2*cmdPoints+1] = int7(bigdy);
					cmdPoints++;
3dsman's avatar
3dsman committed
				}
				dxys[2*cmdPoints] = int7(dx);
				dxys[2*cmdPoints+1] = int7(dy);
3dsman's avatar
3dsman committed
				cmdPoints++;
				sndPoint++;
				oldX = x;
				oldY = y;
				if (cmdPoints==16)
				{
					comm.addPoints(dxys, 16);
					if (!comm.ack()) std::cerr << "Can't add points" << std::endl;
					return;
				}
3dsman's avatar
3dsman committed
			}
3dsman's avatar
3dsman committed
			{
				comm.addPoints(dxys, cmdPoints);
3dsman's avatar
3dsman committed
				if (!comm.ack()) std::cerr << "Can't add points" << std::endl;
3dsman's avatar
3dsman committed
			}
		}