Add mouse events to OMC learner

Registered by salsaman

Full description to follow.

Blueprint information

Status:
Not started
Approver:
salsaman
Priority:
Low
Drafter:
salsaman
Direction:
Needs approval
Assignee:
None
Definition:
Drafting
Series goal:
None
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

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_handler_connect()
<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

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.