|
[fixed] Why CTRL+R not equal to MMB ?
|
|
10-23-2015, 03:26 PM
(This post was last modified: 10-30-2015 05:19 PM by micheus.)
Post: #1
|
|||
|
|||
|
[fixed] Why CTRL+R not equal to MMB ?
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. |
|||
|
10-23-2015, 03:38 PM
Post: #2
|
||||
|
||||
|
RE: Why CTRL+R not equal to MMB ?
My Wings3d 2.0.1:
![]() Everything seems to be OK.
|
||||
|
10-23-2015, 03:42 PM
Post: #3
|
||||
|
||||
|
RE: Why CTRL+R not equal to MMB ?
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)
|
||||
|
10-23-2015, 03:50 PM
Post: #4
|
|||
|
|||
|
RE: Why CTRL+R not equal to MMB ?
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.
|
|||
|
10-30-2015, 02:27 AM
Post: #5
|
|||
|
|||
|
RE: [ggaliens] Why CTRL+R not equal to MMB ?
This is seems like a fix ...
Code: get_mouse_state() -> |
|||
|
10-30-2015, 07:31 AM
(This post was last modified: 10-30-2015 07:59 AM by micheus.)
Post: #6
|
||||
|
||||
|
RE: [ggaliens] Why CTRL+R not equal to MMB ?
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: :
|
||||
|
10-30-2015, 02:27 PM
(This post was last modified: 10-30-2015 02:29 PM by ggaliens.)
Post: #7
|
|||
|
|||
|
RE: [ggaliens] Why CTRL+R not equal to MMB ?
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). |
|||
|
10-30-2015, 03:33 PM
(This post was last modified: 10-30-2015 03:35 PM by micheus.)
Post: #8
|
||||
|
||||
RE: [ggaliens] Why CTRL+R not equal to MMB ?
(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?!
|
||||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)





@MicheusVieira
MicheusVieira
Micheuss
micheus4wings3d
