comparison scripts/plot/private/__fltk_ginput__.m @ 16785:3d981b47be42

Return button information for ginput when using FLTK (bug #32178) * libinterp/dldfcn/__init_fltk__.cc(handle): Call execute_windowbuttondownfcn with Fl::event_button() so that data is returned. * scripts/plot/private/__fltk_ginput__.m: Pass button data back, rather than always initializing to 1 (left mouse button).
author Rik <rik@octave.org>
date Thu, 20 Jun 2013 10:55:45 -0700
parents 72c96de7a403
children 2cfd8cd9e1b6
comparison
equal deleted inserted replaced
16784:0fabe0f49f38 16785:3d981b47be42
83 endif 83 endif
84 endfunction 84 endfunction
85 85
86 function ginput_windowbuttondownfcn (src, data) 86 function ginput_windowbuttondownfcn (src, data)
87 point = get (get (src,"currentaxes"), "currentpoint"); 87 point = get (get (src,"currentaxes"), "currentpoint");
88 ## FIXME -- How to get the actual mouse button pressed (1,2,3) into 88 button = data;
89 ## "button"?
90 button = 1;
91 ginput_aggregator (1, point(1,1), point(2,1), button); 89 ginput_aggregator (1, point(1,1), point(2,1), button);
92 endfunction 90 endfunction
93 91
94 function ginput_keypressfcn (src, evt) 92 function ginput_keypressfcn (src, evt)
95 point = get (get (src, "currentaxes"), "currentpoint"); 93 point = get (get (src, "currentaxes"), "currentpoint");