mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Eliminate DefineConsoleFunction
This commit is contained in:
parent
bc1b506205
commit
e718841467
55 changed files with 314 additions and 332 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue