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

Function printInputState

engine/source/platformAndroid/AndroidInput.cpp:585–607  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

583
584//------------------------------------------------------------------------------
585void printInputState(void)
586{
587 if ( gInputEnabled )
588 {
589 Con::printf( "Low-level input system is enabled." );
590
591 Con::printf( "- Keyboard is %sabled and %sactive.",
592 gKBEnabled ? "en" : "dis",
593 gKBActive ? "" : "in" );
594 Con::printf( "- Mouse is %sabled and %sactive.",
595 gMouseEnabled ? "en" : "dis",
596 gMouseActive ? "" : "in" );
597/*
598 Con::printf( "- Joystick is %sabled and %sactive.",
599 gJoystickEnabled() ? "en" : "dis",
600 gJoystickActive() ? "" : "in" );
601*/
602 }
603 else
604 {
605 Con::printf( "Low-level input system is disabled." );
606 }
607}
608
609//------------------------------------------------------------------------------
610ConsoleFunction( echoInputState, void, 1, 1, "echoInputState()" )

Callers 1

ConsoleFunctionFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected