gui/timeline.c click event
This commit is contained in:
@@ -88,6 +88,7 @@ int new_color(gui *gui, char *color);
|
|||||||
* - resize { int: width }
|
* - resize { int: width }
|
||||||
* - scrollup { int [3]: x, y, key_modifiers }
|
* - scrollup { int [3]: x, y, key_modifiers }
|
||||||
* - scrolldown { int [3]: x, y, key_modifiers }
|
* - scrolldown { int [3]: x, y, key_modifiers }
|
||||||
|
* - click { int: button }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* same type as in gui_defs.h */
|
/* 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;
|
d[2] = key_modifiers;
|
||||||
gui_notify(g, "scrolldown", _this, d);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user