On 11.04.2022 20:29, Will Godfrey wrote:
On Mon, 11 Apr 2022 10:43:01 +0100
Will Godfrey <willgodf...@musically.me.uk> wrote:
There seems to be something really weird here.
There are a number of UI files where it seems you can just plonk in a handle()
function (only in certain classes within those files) and it will magically pick
up all events while the associated window has focus. But I can't work out what
it is that's special about these, as doing the same in MasterUI doesn't work.
The ones that immediately come to mind are ResonanceUI, VirKeyboardUI and
BankUI.
If that could be done in MasterUI, it would completely resolve to problems I'm
having getting key based Undo/Redo working across all instances, and presumably
LV2.
This is driving me absolutely nuts :(
I used the virtual keyboard code as a pattern, placing the code in the MasterUI
file. Apart from the actual names, the basic structure, and the way it is called
is identical, yet when trying to compile I get the following error:
/home/will/yoshimi-code/build/MasterUI.cpp:162:73: error: only constructors
take member initializers 162 | dle(int x,int y, int w, int h, const char
*label):Fl_Box(x,y,w,h,label) { |
^~~~~~
If anyone would like to see if that can find what is wrong, I've pushed it to
guhub as a new branch "test-keyhandle".
Been away on Easter holiday, so I'm very late to the party, but isn't it
simply mis-spelled? If I change keyHandle to KeyHandle, it compiles for me.
For the rest of the FLTK issues, I'm afraid I'm as mystified as you are.
--
Kristian
_______________________________________________
Yoshimi-devel mailing list
Yoshimi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/yoshimi-devel