tested it on emulator and hardware ... x is increasing, y is empty and
px/py are way out of bounds.

so it's my compiler's fault?