PDA

View Full Version : .Net/Oxygene Equivalent of onIdle?



Relfos
13-11-2012, 09:30 PM
I'm new to .net and Oxygene, and I'm trying to port one of my games to this new platform. Right now I'm stumped how to replace the OnIdle event handler that I used in Delphi. Basically I need a place to put code that will run each frame of the game (and thus render graphics, manage game logic and so on).
I found how to get key and mouse input in a Oxygene form, now I'm just lacking a onidle, anyone knows how to?

SilverWarior
15-11-2012, 01:51 AM
While I don't have direct expirience with .Net/Oxygene I can't tell you for sure but if I remember from some post somwhere on the internet there is some advanced timer (much better than standard TTimer in pascal) which incorporates similar approach. So you wanna check on that.

Galfar
22-11-2012, 09:51 PM
There is Application.Idle event in .NET that should do the same thing as OnIdle in Delphi.