Thanks for the additional info.
I'm thinking of a different approach to this feature where The Lighting Controller 'owns' the button state, and after The Lighting Controller changes a button state, it ‘tells’ VDJ that state using the OS2L feedback protocol.
I did some additional research on this that may be helpful:
http://os2l.org has links to an example implementation for dmx software.
After studying the file:
http://os2l.org/OS2L.cpp,
it seems like a routine similar to:
sendFeedback(name, page, onOrOff) could be added to ‘The Lighting Controller’.
The idea is that when ‘The Lighting Controller’ get’s an OS2L button command and it turns on or off a ‘The Lighting Controller’ button, that it also sends feedback to the DJ software, which should allow the DJ software to visually display the button as on or off.
For example:
Within VDJ, A user adds a push action to a custom button such as:
os2l_button ‘DJ Buttons’ ‘Blue’Within VDJ, the user pushes and releases the VDJ custom button described above.
The Lighting Controller receives the OS2L button command, so it toggles the button labeled ‘Blue’ on the page ‘DJ Buttons’ on or off.
Next, ’The Lighting Controller’ would do something similar to:
sendFeedback(“Blue”, page, “on”) -or-
sendFeedback(“Blue”, page, “off’) depending on the state of the ‘Blue’ button.
Virtual DJ would then get an OS2L message similar to the following:
{“evt”:”feedback”,”Blue”:”DJ Buttons”,"state":"on"} or
{“evt”:”feedback”,”Blue”:”DJ Buttons”,"state":"off"}Virtual DJ should then be able to visually indicate the button on/off status that is mapped to the custom button with action
os2l_button ‘DJ Buttons’ ‘Blue’ . (The ‘page’ parameter seems like it may be optional.)
Unless I’m missing something, sending OS2L feedback from ‘The Lighting Controller’ seems like it would allow Virtual DJ to visually show the on/off status of custom OS2L button(s), and that would be a really great feature!
I love The Lighting Controller, my Xpress512 Plus with remote and being able to control my lights with VDJ. Many thanks!