I develop a QT application under Windows XP and I want to use SI_POLL to get informations from my spacemouse. The problem is SiOpen function returns SI_BAD_VALUE and I don't kwon why.
Code: Select all
SiOpenData oData;
if (SiInitialize() == SPW_DLL_LOAD_ERROR)
{
button1->setCheckState(Qt::Checked);//to check errors
} else if ((spaceHandler = SiOpen("SpaceMouse", SI_ANY_DEVICE, SI_NO_MASK, SI_POLL, &oData)) == NULL) {
button2->setCheckState(Qt::Checked);//to check errors
} else {
SiClose(spaceHandler);
}
I maybe made something wrong. Someone could explain to me what is the problem??