jvcleave / ofxImGui

Use ImGui in openFrameworks
293 stars 124 forks source link

mouse rightbutton click not working on osx 10.9 #27

Closed roymacdonald closed 8 years ago

roymacdonald commented 8 years ago

Hey Jason, Awesome addon! Just played with it for a while an I loved it. I cant right clic to get contextual menus, edit colors, etc. although it happens to work with the mouse third button. I´m using an Apple mighty mouse. In the mouse status panel in the example it shows that it gets: left mouse button as number 0, middle mouse button as number 1 and right mouse button as number 2 which sound fine for me. I'll try to dig deeper in order to get whats going on but maybe you know how to fix this. All the best!

jvcleave commented 8 years ago

It's getting mixed up here: https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworks/app/ofAppGLFWWindow.cpp#L954

Edit: Just opened this issue https://github.com/openframeworks/openFrameworks/issues/4873

roymacdonald commented 8 years ago

Great! thanks. all the best

jvcleave commented 8 years ago

@roymacdonald I wrote this but haven't ran it with a real mouse yet as I am on my laptop. https://github.com/jvcleave/ofxImGui/tree/fix-glfw-mouse

roymacdonald commented 8 years ago

great!. thanks.

jvcleave commented 8 years ago

https://github.com/jvcleave/ofxImGui/commit/54e1be7090c48f7ae38b61d46dafae87b13f2861