Overhaul mouse input system and look-around camera - #1278
Conversation
|
preview, i set scroll up/down as zoom in/out and we can do interesting stuff like dolly zoom. *i need to compress this video because github upload limit Screen.Recording.2026-04-26.1114382.mp4 |
|
Hmm. The issue with using the System.Windows.Forms.Cursor approach is going to be on platforms other than Windows- Without checking specifically, it's unlikely to work at all on Mac, and Linux may or may not work. To immediately fix your bug, set the alignment direction, not the alignment directly. |
- Implement smooth mouse look-around using System.Windows.Forms.Cursor. - Fix camera spinning and choppiness by bypassing OpenTK event lag. - Add dynamic sensitivity scaling based on zoom level (FOV). - Add support for mouse scroll and extra buttons in input processing. - Update Indonesian and English translations for new mouse controls. - Add default control mappings for mouse input.
… setting with max limit, and update localization.
|
ok its done. @leezer3 please check. |
…l wheel movements
…options overlap - Track held modifiers across KeyDown/KeyUp so mouse bindings can require them - Load/save an optional trailing modifier column for mouse controls (backwards compatible) - Show Shift/Ctrl/Alt checkboxes for mouse bindings in Options > Controls - Fix updownZoomScrollSpeed overflowing its groupbox and groupboxCamera overlapping the Object Parser group
…apture - Record the press order of Shift/Ctrl/Alt so e.g. Ctrl->Shift+A and Shift->Ctrl+A are distinct bindings - Store an optional trailing modifier-order column in controls.cfg (0 = any order, backwards compatible) - Track held modifier sequence at runtime and enforce it when matching keyboard and mouse bindings - Options dialog: grab box now captures held modifiers instead of binding the modifier keys themselves - Checkbox tick order defines the recorded press order; assignment column displays the stored order
|
Nice all checks green. I think this feature is done... @leezer3 can you have a look? @ginga81 do you want to test this mouse input feature on linux? How to: My test scenario is to change: if can, please also test modifier swap combination, like: Zoom in : CTRL + SHIFT + Scroll Up I hope not broken on other platforms... |
|
I built and ran the application. Personally, I felt the wheel speed was very slow when zooming in and out. |
|
You can change it on options page, it's called zoom camera speed. I think I'll change the default speed maybe 50. |
|
I just discovered this on the options page. |
Note: there is a small bug, if we in look around mode (right click mouse) and look backward, anything not loaded like got culled and it need to be triggerd by something like moving the camera position a bit or use arrow key once.
@leezer3 i need your help about that bug.