MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / scrollingEvent

Method scrollingEvent

testbed/src/Scene.cpp:141–145  ·  view source on GitHub ↗

Called when a scrolling event occurs

Source from the content-addressed store, hash-verified

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

Callers 1

scroll_eventMethod · 0.80

Calls

no outgoing calls

Tested by 1

scroll_eventMethod · 0.64