Dumb Q: diff btwn Button.Input.Device & Button.SourceDev?
youstra
Posts: 135
Inside an event handler, what's the diff btwn the .input.device and .sourceDev?
Thx in advance,
Bill
Thx in advance,
Bill
0
Comments
Also: page 63 of the manual does not really answer the question, so...... Good Question
There is a difference...but not as you stated.
In a combined situation, the master is really intercepting the input from the real device, and creating a push from the virtual device. So in an event for a combined device, the button.input.device contains the DEV for the virtual used in the combine, and the button.sourceDev contains 0:1:x since the master was the originator of the processed message (even though the real device started the chain of events, the originator of the message used in the event was the master)
There could be a philosophical argument made as to whether what you describe would be proper behavior, or whether what is implemented is proper behavior. That being said...I do not think it would be changed because it is possible the change could break some systems already deployed.
Let?s say we?re working in a secure environment and we don?t want any outside sources (Emulate a Device, Control a Device, Telnet, etc) to be able to execute code at any time. Would the ?do something here? only get executed if and only if someone literally pushed button 1 on the physical device 10001? Just curious.
Thanks.
"Upon further review...the call on the field is reversed."
It appears sourceDev is almost exclusively populated with the master's DEV. I'll have to dig further to see when it is not and is instead populated with the actual source DEV. Sorry for the misinformation. I was working from memory and did not validate before I submitted my original response. My apologies. I'll post when I have more info.