Hello,
I have a test application that uses a MFC multiple-document interface (MDI). Multiple windows can be opened at the same time, and each window can receive input from the SpaceMouse.
Question is, how should calls to SiInitialize(), SiClose(), and SiTerminate() be handled when dealing with multiple windows?
Is it safe to call SiInitialize() and SiTerminate() for every window that opens and closes, or should they only be called once at the top application level? Thanks.
Multiple windows?
Moderator: Moderators
Re: Multiple windows?
The API is designed to call SiOpen for each window that wants events (using its HWND) and SiClose when the window no longer wants the events (e.g., being destroyed).
It is expected that each window will get keyboard focus when it wants events. That is, normal MDI behavior.
Call SiInitialize / SiTerminate with the lifetime of the overall application.
It is expected that each window will get keyboard focus when it wants events. That is, normal MDI behavior.
Call SiInitialize / SiTerminate with the lifetime of the overall application.