Please sign in to comment.
[3d] fix camera controller using wrong shift/ctrl status (fixes #20131)
We used Qt3DInput::QLogicalDevice with its axes and actions for camera controller, but over time this got quite impractical, moreover we started to have problems with shift/ctrl actions getting stuck in wrong state in case they were pressed or released while 3D canvas was not focused (which is in fact relatively common when using other widgets in the GUI) This commit switches over to using just QMouseHandler and QKeyboardHandler for handling key and mouse events and this not only makes the code easier to read, but also the issues with shift/ctrl go away (because we do not keep their status anymore, we just check whether they are active inside event handlers). The speed of change with mouse wheel and keys should be similar or a bit less than what it was before. (cherry picked from commit fbde0c8)
- Loading branch information
Showing with 246 additions and 270 deletions.
Oops, something went wrong.