As usual, Norms on top of the systems issues at hand.
willemjav, it sorta runs like this.....
|
Code:
|
do{
if(button_pressed){shipData();yield();}
else{yield, sleep or whatever} |
that's in the PlaySequence class, which has a boolean... run / stop
then in MainControllerClass:
|
Code:
|
ControllerClass{
PlaySequence sequencer;
ControllerClass(PlaySequence ps){
sequencer = ps;
} |
and in the ControllerClass we have in the event handler:
|
Code:
|
if(event typeof button event){
sequencer.button_pressed = true / false;// |
which can also be done by a method call.
The work at hand is not unlike looking at one's image in a mirror in the morning when waking up and at that instant where you gain enough conciousness to differentiate the image in the mirror from the actual coporeal body and as well disentangle that from your thoughts, which is also contradistincted from the thoughts of others......
Some languges, many non ISO Latin-1 languages, do not even have words for this, probably some relaxed contemplation is best for this work. That is what works for me. In fact I no longer even put this stuff in a main.....