Eliminate DefineConsoleFunction

This commit is contained in:
Lukas Joergensen 2018-04-17 16:33:56 +02:00
parent bc1b506205
commit e718841467
55 changed files with 314 additions and 332 deletions

View file

@ -157,13 +157,13 @@ void Input::init()
}
//------------------------------------------------------------------------------
DefineConsoleFunction( isJoystickDetected, bool, (), , "isJoystickDetected()")
DefineEngineFunction( isJoystickDetected, bool, (), , "isJoystickDetected()")
{
return( DInputDevice::joystickDetected() );
}
//------------------------------------------------------------------------------
DefineConsoleFunction( getJoystickAxes, const char*, (U32 deviceID), , "getJoystickAxes( instance )")
DefineEngineFunction( getJoystickAxes, const char*, (U32 deviceID), , "getJoystickAxes( instance )")
{
DInputManager* mgr = dynamic_cast<DInputManager*>( Input::getManager() );
if ( mgr )
@ -505,7 +505,7 @@ void Input::log( const char* format, ... )
va_end( argptr );
}
DefineConsoleFunction( inputLog, void, (const char * log), , "inputLog( string )")
DefineEngineFunction( inputLog, void, (const char * log), , "inputLog( string )")
{
Input::log( "%s\n", log );
}