EgtInterface 1.6w1 :
- aggiornata interfaccia di EgtSimGetAxisInfoPos per parametro tipo asse aggiunto.
This commit is contained in:
+8
-6
@@ -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) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user