• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Bug Reports v
« Previous 1 … 23 24 25 26 27 … 35 Next »
[fixed] Why CTRL+R not equal to MMB ?

 
  • 0 Vote(s) - 0 Average
[fixed] Why CTRL+R not equal to MMB ?

ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#5
10-30-2015, 02:27 AM
This is seems like a fix ...
Code:
get_mouse_state() ->
    wx:batch(fun() ->
             MS = wx_misc:getMouseState(),
             #wxMouseState{x=X0, y=Y0,  %% integer()
                   leftDown=Left,
                   middleDown=Middle,
                   rightDown=Right %% bool()
                  } = MS,
             {X,Y} = wxWindow:screenToClient(get(gl_canvas), {X0,Y0}),

             C = wings_io:is_modkey_pressed(?CTRL_BITS),
             if (C andalso Right) ->  % example ... used by Nendo two button folks.
                 {gui_state([{Left,   ?SDL_BUTTON_LMASK},
                     {true, ?SDL_BUTTON_MMASK},
                     {false,  ?SDL_BUTTON_RMASK}], 0), X, Y};
             true ->
                 {gui_state([{Left,   ?SDL_BUTTON_LMASK},
                     {Middle, ?SDL_BUTTON_MMASK},
                     {Right,  ?SDL_BUTTON_RMASK}], 0), X, Y}
             end
         end).
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
[fixed] Why CTRL+R not equal to MMB ? - by ggaliens - 10-23-2015, 03:26 PM
RE: Why CTRL+R not equal to MMB ? - by micheus - 10-23-2015, 03:38 PM
RE: Why CTRL+R not equal to MMB ? - by micheus - 10-23-2015, 03:42 PM
RE: Why CTRL+R not equal to MMB ? - by ggaliens - 10-23-2015, 03:50 PM
RE: [ggaliens] Why CTRL+R not equal to MMB ? - by ggaliens - 10-30-2015, 02:27 AM
RE: [ggaliens] Why CTRL+R not equal to MMB ? - by micheus - 10-30-2015, 07:31 AM
RE: [ggaliens] Why CTRL+R not equal to MMB ? - by ggaliens - 10-30-2015, 02:27 PM
RE: [ggaliens] Why CTRL+R not equal to MMB ? - by micheus - 10-30-2015, 03:33 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode