EgtInterface 1.6w1 :

- aggiornata interfaccia di EgtSimGetAxisInfoPos per parametro tipo asse aggiunto.
This commit is contained in:
Dario Sassi
2016-11-01 19:07:27 +00:00
parent bbe34f603f
commit 48146a33e7
2 changed files with 8 additions and 6 deletions
+8 -6
View File
@@ -1265,15 +1265,17 @@ __stdcall EgtSimHome( void)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, double* pdVal)
__stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsToken, BOOL* pbLinear, double* pdVal)
{
if ( &wsName == nullptr || pdVal == nullptr)
if ( &wsToken == nullptr || pbLinear == nullptr || pdVal == nullptr)
return FALSE ;
string sName ;
if ( ! ExeSimGetAxisInfoPos( nI, sName, *pdVal))
string sToken ;
bool bLinear ;
if ( ! ExeSimGetAxisInfoPos( nI, sToken, bLinear, *pdVal))
return FALSE ;
wsName = _wcsdup( stringtoW( sName)) ;
return (( wsName == nullptr) ? FALSE : TRUE) ;
wsToken = _wcsdup( stringtoW( sToken)) ;
*pbLinear = ( bLinear ? TRUE : FALSE) ;
return (( wsToken == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------