Called when a scrolling event occurs
| 139 | |
| 140 | // Called when a scrolling event occurs |
| 141 | bool Scene::scrollingEvent(float /*xAxis*/, float yAxis, float scrollSensitivy) { |
| 142 | zoom(yAxis * scrollSensitivy); |
| 143 | |
| 144 | return true; |
| 145 | } |
| 146 | |
| 147 | // Zoom the camera |
| 148 | void Scene::zoom(float zoomDiff) { |