PtProcessEvent -- handles Photon events.
PtProcessEvent ()
t if an event was processed. Otherwise, it doesn't return, and puts the application into reply-blocked mode.
In Photon documentation: PtProcessEvent