Is there any way to get MMB wheel scrolling in viewport?
-
Is there any way to stop MMB wheel to zoom the camera then get MMB wheel scrolling in viewport in Description Tool?
I need to scroll the MMB wheel in the viewport to change my tool's params?
For example, shift + scroll MMB wheel to increase the value.I know how to get MMB wheel scrolling in GeDialog like in asynctest.cpp. But MMB wheel scrolling can not got in MouseInput() in tools (ToolData, DescriptionToolData).
-
Hey @LingZA,
Thank you for reaching out to us. There are multiple questions in this topic, which always makes things tricky to answer.
- Is there any way to stop MMB wheel to zoom the camera?
- I need to scroll the MMB wheel in the viewport to change my tool's params?
- Is there any way to get MMB wheel scrolling in viewport?
In general, Cinema 4D has no input device control & emulation layer, so you cannot intercept an input device from sending (stop the mouse wheel to zoom) or emulate inputs (get the mouse wheel scrolling).
You can get the state of an input device. For MMB that would be the GUI message
BFM_INPUT
withBFM_INPUT_DEVICE
beingBFM_INPUT_MOUSE
andBFM_INPUT_CHANNEL
beingBFM_INPUT_MOUSEMIDDLE
. When you fail to readBFM_INPUT_MOUSEMIDDLE
in your plugin, please share executable code, so that we can reproduce the problem.When necessary, you can send code confidentially to us via
sdk_support(at)maxon(dot)net
.Cheers,
Ferdinand