MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / enableKeyboard

Function enableKeyboard

engine/source/platformAndroid/AndroidInput.cpp:465–487  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

463
464//------------------------------------------------------------------------------
465bool enableKeyboard()
466{
467 if ( !gInputEnabled )
468 return( false );
469
470 if ( gKBEnabled && gKBActive )
471 return( true );
472
473 gKBEnabled = true;
474 if ( Input::isActive() )
475 gKBEnabled = activateKeyboard();
476
477 if ( gKBEnabled )
478 {
479 Con::printf( "Hardware-direct keyboard enabled." );
480 }
481 else
482 {
483 Con::warnf( "Hardware-direct keyboard failed to enable!" );
484 }
485
486 return( gKBEnabled );
487}
488
489//------------------------------------------------------------------------------
490void disableKeyboard()

Callers 1

enableKeyboardMethod · 0.85

Calls 4

isActiveFunction · 0.85
activateKeyboardFunction · 0.85
printfFunction · 0.85
warnfFunction · 0.85

Tested by

no test coverage detected