Simple example of multiple-devices programming.
#include <iostream>
#include <iomanip>
int main(int argc,
char* argv[])
{
if (deviceCount < 0)
{
return -1;
}
else if (deviceCount < 1)
{
std::cout << "error: no device detected" << std::endl;
}
else if (deviceCount < 2)
{
std::cout << "error: singled device detected" << std::endl;
}
if (deviceID0 < 0)
{
return -1;
}
if (deviceID1 < 0)
{
return -1;
}
while (true)
{
{
break;
}
{
break;
}
{
break;
}
}
{
}
{
}
return 0;
}
int __SDK dhdOpenID(char ID)
Definition: dhdc.cpp:411
int __SDK dhdClose(char ID=-1)
Definition: dhdc.cpp:443
int __SDK dhdGetDeviceCount()
Definition: dhdc.cpp:226
int __SDK dhdGetButton(int index, char ID=-1)
Definition: dhdc.cpp:1182
const char *__SDK dhdErrorGetLastStr()
Definition: dhdError.cpp:197
int __SDK dhdSetForce(double fx, double fy, double fz, char ID=-1)
Definition: dhdc.cpp:1697