Hi all,
I would like to get permanently rid of the popup menu appearing when pressing left button of my Space Navigator mouse while my application is running, and I'd like to disable this menu programmatically, from within the application. I want to use the left button in my application, and this menu doesn't allow to capture events for this button...
I've tried to call SiSetUiMode with SI_UI_NO_CONTROLS, but it doesn't seem to do anything...
Am I misusing this call ? Is the call only to be used to display/remove the popup, or to allow/inhibit it ?
And a side question about this routine. The doc says to call SiSetUiMode before calling SiOpen, but as SiOpen returns the device handle that has to be given to SiSetUiMode, the device handle is only available after the call to SiOpen... I'm a bit puzzled
In the demo programs, the SetUiMode is called before SiOpen, and the device handle is uninitialized at the time of call to SetUiMode...
Thanks for any light.
François
(Mis)using SiSetUiMode ?
Moderator: Moderators
Re: (Mis)using SiSetUiMode ?
Hi,
DirectX in fullscreen mode can react dramatically to any gui popup.
it would be handy to be able to disable/enable the driver popup when switching the fullscreen on/off.
Alternativelly app could be informed by event _before_ so it could switch from fullscreen to windowed mode.
DirectX in fullscreen mode can react dramatically to any gui popup.
it would be handy to be able to disable/enable the driver popup when switching the fullscreen on/off.
Alternativelly app could be informed by event _before_ so it could switch from fullscreen to windowed mode.
Re: (Mis)using SiSetUiMode ?
I've also noticed the "The doc says to call SiSetUiMode before calling SiOpen", and the fact that calling it seems to do nothing at all. Is this just some code that doesn't work any more, or is it just failing to work on my device?
Re: (Mis)using SiSetUiMode ?
The doc's wrong. It has to be called after SiOpen. It is best to not call it all together. It should be a user preference to have the GUI up or not.
Re: (Mis)using SiSetUiMode ?
Ok, I'll just not use it. Thanks for the reply!