Commit e4fd2296 authored by Cedric Roux's avatar Cedric Roux
Browse files

gui/timeline.c click event

parent 5c5f5470
......@@ -88,6 +88,7 @@ int new_color(gui *gui, char *color);
* - resize { int: width }
* - scrollup { int [3]: x, y, key_modifiers }
* - scrolldown { int [3]: x, y, key_modifiers }
* - click { int: button }
*/
/* same type as in gui_defs.h */
......
......@@ -74,6 +74,10 @@ static void button(gui *_g, widget *_this, int x, int y,
d[2] = key_modifiers;
gui_notify(g, "scrolldown", _this, d);
}
/* button 1/2/3 */
if ((button == 1 || button == 2 || button == 3) && up == 0) {
gui_notify(g, "click", _this, &button);
}
}
/*************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment