| 1672 | } |
| 1673 | |
| 1674 | void PhysXSample::togglePause() |
| 1675 | { |
| 1676 | //unregisterInputEvents(); |
| 1677 | mPause = !mPause; |
| 1678 | if (mEnableAutoFlyCamera) |
| 1679 | { |
| 1680 | if (mPause) |
| 1681 | { |
| 1682 | mSavedCameraController = getCurrentCameraController(); |
| 1683 | mApplication.saveCameraState(); |
| 1684 | mFlyCameraController.init(getCamera().getViewMatrix()); |
| 1685 | setCameraController(&mFlyCameraController); |
| 1686 | } |
| 1687 | else |
| 1688 | { |
| 1689 | mApplication.restoreCameraState(); |
| 1690 | setCameraController(mSavedCameraController); |
| 1691 | } |
| 1692 | } |
| 1693 | //registerInputEvents(true); |
| 1694 | } |
| 1695 | |
| 1696 | void PhysXSample::showExtendedInputEventHelp(PxU32 x, PxU32 y) |
| 1697 | { |
nothing calls this directly
no test coverage detected