![]() |
|
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
You can set up a Windows timer in your executable that calls a function every so many milliseconds and then put all your FSUIPC code in there to get the data and update your local variables, i.e.
This will setup a timer that runs every 55 milliseconds, which is roughly equivalent to the FS update rate or 1/18 seconds. Code:
int timerId; timerId = SetTimer(NULL,0,55,TimerCallbackProc); Code:
static VOID CALLBACK TimerCallbackProc( HWND hwnd,
UINT uMsg,
UINT_PTR idEvent,
DWORD dwTime)
{
/* your code goes here */
}
Si |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ADE and FSUIPC | dh84 | Airport Design Editor | 4 | 25-01-2010 11:56 |
| Update on Failure Modes | Dutch | SimConnect | 0 | 11-03-2009 09:10 |
| Working Clock | ubeulr | BGLC tweaking | 19 | 07-03-2008 21:09 |
| SimConnect Simulator Variables | FlapsOut | SimConnect | 3 | 12-06-2007 19:24 |