send feedback events to all touchpanels
slip cougan
Junior Member
I'm using this pseudo code to generate the push and feedback events to a few panels. Some of the feedback is specific to the panel that generated the push but I have some push feedback events that I want to send to all panels. I know this should be real simple but it's just not working for me. What am I missing.
Many thanks
slip
DEFINE_DEVICE
// Touchpanels
TP1 = 10001:1:0
TP2 = 10002:1:0
DEFINE_VARIABLE
DEV devPanels[] = {TP1, TP2}
DEFINE_FUNCTION fnProcessBtn(INTEGER menuButton)
{ // pseudo code to determin feedback type
if(1st condition met) // do feedback to local panel only
{
on[devPanels[panelIndex], menuButton]
}
if(2nd condition met) // do feedback to all panels
{
on[devPanels[0], menuButton] // << I have tried devPanels[0] & devPanels[] here to no avail
}
}
BUTTON_EVENT[devPanels,0]
{
PUSH:
{
panelIndex = GET_LAST(devPanels)
panelDeviceNumber = BUTTON.INPUT.DEVICE.NUMBER // for other housekeeping
pushIndex = BUTTON.INPUT.CHANNEL
fnProcessBtn(pushIndex)
}
}
Many thanks
slip
DEFINE_DEVICE
// Touchpanels
TP1 = 10001:1:0
TP2 = 10002:1:0
DEFINE_VARIABLE
DEV devPanels[] = {TP1, TP2}
DEFINE_FUNCTION fnProcessBtn(INTEGER menuButton)
{ // pseudo code to determin feedback type
if(1st condition met) // do feedback to local panel only
{
on[devPanels[panelIndex], menuButton]
}
if(2nd condition met) // do feedback to all panels
{
on[devPanels[0], menuButton] // << I have tried devPanels[0] & devPanels[] here to no avail
}
}
BUTTON_EVENT[devPanels,0]
{
PUSH:
{
panelIndex = GET_LAST(devPanels)
panelDeviceNumber = BUTTON.INPUT.DEVICE.NUMBER // for other housekeeping
pushIndex = BUTTON.INPUT.CHANNEL
fnProcessBtn(pushIndex)
}
}
Comments
-
Get rid of [0]. just use dvPanels
-
Thanks Vav
so simply:
on[devPanels, menuButton] ??
Didn't try that one
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
