summaryrefslogtreecommitdiff
path: root/gui/input.c
AgeCommit message (Collapse)AuthorFilesLines
2016-08-24GUI performance timer, toggle with "T"Werner Almesberger1-0/+11
Shows milliseconds between last event and completion of screen update.
2016-08-23misc/diag.h (BUG): more useful diagnostics; replace all "abort" with itWerner Almesberger1-6/+6
2016-08-23eeshow/gui/input.c: left and middle mouse button are equivalentWerner Almesberger1-2/+9
This makes it easy to switch between eeshow and eeschema, where only the middle mouse button is used for dragging.
2016-08-22eeshow/diag.c (progress): don't require user to supply newlineWerner Almesberger1-4/+4
2016-08-18eeshow/gui/input.c (hover_update): handle a few more rare casesWerner Almesberger1-3/+19
2016-08-18eeshow/gui/input.c (button_release_event): input_hovering_down -> input_idleWerner Almesberger1-1/+1
2016-08-18eeshow/gui/input.c (clicked_x, _y): avoid accumulation of conversion errorsWerner Almesberger1-1/+1
Gtk uses floating-point coordinates. The double conversion during dragging (event -> clicked -> difference with next event) caused dragging to "slow down" in the X- and Y- direction.
2016-08-18eeshow/gui/input.c (input_update): update hovering after coordinate changesWerner Almesberger1-18/+70
E.g., when zooming in or out.
2016-08-18eeshow/gui/input.c: support hover -> drag; set state to idle after cleanupWerner Almesberger1-19/+46
2016-08-18eeshow/gui/input.c (motion_notify_event): misinterpreted hover_update resultWerner Almesberger1-1/+1
This almost worked, except that it sometimes left hovering on after leaving an AoI, which then caused a subsequent drag to be handled as hover_click. This caused the history list sometimes to be closed when trying to drag.
2016-08-18eeshow/gui/input.c: add tracing (-v -v -v); rename input_normal to input_idleWerner Almesberger1-9/+38
2016-08-18eeshow/gui/: bring back scrolling of the historyWerner Almesberger1-1/+2
Now it's more usable than before, since clicking between commits won't close the history.
2016-08-18eeshow/gui/gui.c: begin moving input (mouse, keyboard) handling to input.c (WIP)Werner Almesberger1-0/+288
We had input state scattered all over the place. This cleans things up. We also merge the functions of left and (previously) middle button. This breaks history panning.