How can I get the delta of the mouseWheel?
I asked chatgpt but not sure if that is the right direction.
I tried with onMouseWheel in a script DAT, but it never seems to trigger. I placed the script DAT inside the project, outside the project, inside a container etc. Nothing helps.
I enabled “Use Mouse Wheel” in project1.
I know there is the mousein chop, but it does not give a delta.
While the MouseIn CHOP does not give a delta, you can calculate the delta from it.
For example using the Hold CHOP, you could preserve the initial value and just subtract the current from the initial to receive the delta.
If operating in a Panel COMP you could also use the Panel CHOP and select the wheel panel value. This will always be -1 or 1 depending on which direction you are turning the wheel. In conjunction with a Count CHOP, you can now count how many steps the wheel was turned.
For both solutions you will need to define a reset condition to get back to the initial state: What needs to happen to start getting a delta again?