FormMain: convert to pdInput for mouse events