| 47 | static OIS::Effect* OisEffect = nullptr; |
| 48 | |
| 49 | void InitializeEffect() |
| 50 | { |
| 51 | OisEffect = new OIS::Effect(OIS::Effect::ConstantForce, OIS::Effect::Constant); |
| 52 | OisEffect->direction = OIS::Effect::North; |
| 53 | OisEffect->trigger_button = 0; |
| 54 | OisEffect->trigger_interval = 0; |
| 55 | OisEffect->replay_length = OIS::Effect::OIS_INFINITE; |
| 56 | OisEffect->replay_delay = 0; |
| 57 | OisEffect->setNumAxes(1); |
| 58 | |
| 59 | auto& pConstForce = *dynamic_cast<OIS::ConstantEffect*>(OisEffect->getForceEffect()); |
| 60 | pConstForce.level = 0; |
| 61 | pConstForce.envelope.attackLength = 0; |
| 62 | pConstForce.envelope.attackLevel = 0; |
| 63 | pConstForce.envelope.fadeLength = 0; |
| 64 | pConstForce.envelope.fadeLevel = 0; |
| 65 | } |
| 66 | |
| 67 | void InitializeInput(HWND handle) |
| 68 | { |