Greg Ercolano wrote:
> if (btn == 1) Fl::e_state |= FL_BUTTON1;
> else if (btn == 3) Fl::e_state |= FL_BUTTON2; // <-- should this be
> (btn == 2)?
> else if (btn == 2) Fl::e_state |= FL_BUTTON3; // <-- should this be
> (btn == 3)?
Hmm, I noticed this 1/3/2 pattern elsewhere in the code, eg:
static int keysym[] = { 0, FL_Button+1, FL_Button+3, FL_Button+2 };
..so I'm guessing this is maybe an intentional "translation" happening
where maybe Apple's mouse button numbering has buttons 2 and 3 transposed
relative to FLTK?
If so, nevermind..! ;)
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev