Here a minimal test ...
Anyway, I have used the multiclick detection done in NEdit
(I still working hardly on porting it to fltk for fun)
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <cstdio>
class MyWin : public Fl_Window {
public:
MyWin() : Fl_Window(30, 50, 600, 500, "MultiClick Test") {}
int handle(int e) {
if (e == FL_PUSH) std::printf("%d\n", Fl::event_clicks()+1);
return Fl_Window::handle(e);
}
};
int main() {
MyWin win;
win.show();
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk