////////////////////////////////////////////////////////////////////////// default implemententions for PhysXSample interface
| 557 | // default implemententions for PhysXSample interface |
| 558 | // |
| 559 | void PhysXSample::onPointerInputEvent(const InputEvent& ie, physx::PxU32 x, physx::PxU32 y, physx::PxReal dx, physx::PxReal dy, bool pressed) |
| 560 | { |
| 561 | switch (ie.m_Id) |
| 562 | { |
| 563 | case CAMERA_MOUSE_LOOK: |
| 564 | { |
| 565 | if(mPicking) |
| 566 | mPicking->moveCursor(x,y); |
| 567 | } |
| 568 | break; |
| 569 | case PICKUP: |
| 570 | { |
| 571 | if(mPicking) |
| 572 | { |
| 573 | mPicked = !mPicked;; |
| 574 | if(mPicked) |
| 575 | mPicking->lazyPick(); |
| 576 | else |
| 577 | mPicking->letGo(); |
| 578 | } |
| 579 | } |
| 580 | break; |
| 581 | } |
| 582 | |
| 583 | } |
| 584 | |
| 585 | void PhysXSample::onResize(PxU32 width, PxU32 height) |
| 586 | { |
nothing calls this directly
no test coverage detected