bool compile() { output = normalizeOutput(input, output, "leelac"); Assembler assembler; return assembler.assemble(input, output); }
bool parse() { output = normalizeOutput(input, output, "lasm"); Parser parser; return parser.parse(input, output); }
void XorgFunction::applyi(int dxMickey, int dyMickey, int *dxPixel, int *dyPixel, TimeStamp::inttime timestamp) { if (normalize) normalizeInput(&dxMickey, &dyMickey, input); // std::cerr << "XorgFunction::apply:" << timestamp << std::endl ; if (timestamp==TimeStamp::undef) timestamp = TimeStamp::createAsInt() ; if (epoch==TimeStamp::undef) epoch = timestamp ; int first = 0, num = 2 ; int valuators[2] = {dxMickey, dyMickey} ; int ms = (timestamp-epoch)/TimeStamp::one_millisecond ; // std::cerr << "XorgFunction::apply: " << timestamp << "/" << ms << " " << dxMickey << " " << dyMickey << std::endl ; if (dev->valuator->accelScheme.AccelSchemeProc) dev->valuator->accelScheme.AccelSchemeProc(dev, first, num, valuators, ms) ; if (normalize) normalizeOutput(valuators, valuators + 1, output); *dxPixel = valuators[0] ; *dyPixel = valuators[1] ; }
void normalizeOutput(string extension) { output = normalizeOutput(input, output, extension); }