![]() |
[fixed] Why CTRL+R not equal to MMB ? - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12) +--- Thread: [fixed] Why CTRL+R not equal to MMB ? (/showthread.php?tid=1434) |
[fixed] Why CTRL+R not equal to MMB ? - ggaliens - 10-23-2015 What's going on ? If it is a BUG ... then we can move to BUGS ... and I can try to fix. If not ... and I'm doing something silly ... please let me know about that. RE: Why CTRL+R not equal to MMB ? - micheus - 10-23-2015 My Wings3d 2.0.1: ![]() Everything seems to be OK. RE: Why CTRL+R not equal to MMB ? - micheus - 10-23-2015 OK, you are using the settings for mouse with TWO buttons only. You could have said that. ![]() Yeah, CTRL + Right click is not acting as it should (MMB) RE: Why CTRL+R not equal to MMB ? - ggaliens - 10-23-2015 I had a good run around in code looking for the spot to even start setting "TRAP" to find bug. No luck yet. Please move to BUGS and I will look more to try and find the bug, and then to git-hub thing. RE: [ggaliens] Why CTRL+R not equal to MMB ? - ggaliens - 10-30-2015 This is seems like a fix ... Code: get_mouse_state() -> RE: [ggaliens] Why CTRL+R not equal to MMB ? - micheus - 10-30-2015 ggaliens, it will not work since only the coordinate returned by this function is used by wings_menu module (called in two places). I took a look on it and it needs to be managed in the popup_events handler. There, the second bind option for receive will process the mouse button for the item selected and it's processing only the three buttons returned in the #wxMouse{type=What} => What -> left_up,middle_up and right_up. As I believe it should to process the mouse buttons as in the preferences, we need to check for num_buttons value and handle the translations to One and Two buttons (not only Two). The workaround/fix I did works fine, but we can get a side effect when using One button: Alt+click in Flip command is intend to duplicate the object before flip it. ![]() Here is the code from wings_menu.erl in case you want to evaluate it. The changes/adds are signed with [*** xxxx ***]. Code: : RE: [ggaliens] Why CTRL+R not equal to MMB ? - ggaliens - 10-30-2015 What Macs still have 1 button ? Aren't those macs very old ? If you think your fix is sound/good Micheus ... please let Dan look at it (pull request). RE: [ggaliens] Why CTRL+R not equal to MMB ? - micheus - 10-30-2015 (10-30-2015, 02:27 PM)ggaliens Wrote: What Macs still have 1 button ?Who knows if someone still could be using one? ![]() Quote:please let Dan look at it (pull request).As I already have the code changed I will do that. Did you try it?! |