| 435 | // |
| 436 | //***************************************************************************** |
| 437 | template<> bool CSingleton< CInputManager >::Create() |
| 438 | { |
| 439 | #ifdef DAEDALUS_ENABLE_ASSERTS |
| 440 | DAEDALUS_ASSERT_Q(mpInstance == NULL); |
| 441 | #endif |
| 442 | |
| 443 | IInputManager * manager( new IInputManager() ); |
| 444 | |
| 445 | if(manager->Initialise()) |
| 446 | { |
| 447 | mpInstance = manager; |
| 448 | return true; |
| 449 | } |
| 450 | |
| 451 | delete manager; |
| 452 | return false; |
| 453 | } |
| 454 | |
| 455 | //***************************************************************************** |
| 456 | // Some utility classes for handling our expression evaluation |
nothing calls this directly
no test coverage detected