Add mouse events to OMC learner
Full description to follow.
Whiteboard
Lets do this in stages.
Stage 1.
Edit the code of omc-learn.h and omc-learn.c
Add a struct which contains mouse position x, position y (as gdouble), the wheel value (as gint) and a bitmap of buttons pressed.
Write a function that takes a GtkWindow * and a pointer to this struct as parameters and sets the values in the struct.
To get started:
<salsaman> if you look in gui.c
<salsaman> just below where it adds _MIDI/joystick interface
<salsaman> add a new menu entry "Mouse learner"
<salsaman> then add a callback for this with g_signal_
<salsaman> the callback function should be a new function in omc-learner.c
<salsaman> in the callback function you will create a new window, with a gtkdrawingarea in it and at the bottom a Close button
<salsaman> the close button should just close the window