struct State {
uint16_t* x;
uint16_t* y;
};
struct TouchLocation
{
uint16_t* x;
uint16_t* y;
};
using Type = TouchLocation;
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
auto state = getState(ctx);
if (isSettingUp()) {
state->x = new uint16_t[10];
state->y = new uint16_t[10];
}
TouchLocation Touch;
Touch.x = state->x;
Touch.y = state->y;
emitValue<output_TLOC>(ctx, Touch);
}