Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roIRDownEvent, roIRRepeatEvent, roIRUpEvent
5min
an ir event object is generated when an ir button input (button press, button repeat, button release) is received by the roirreceiver object use these objects to retrieve the message body of the ir input the roirupevent object is generated with the iguanaworks ir transceiver only ifint getcode() as integer returns the ir code received by the roirreceiver instance setcode(a as integer) overrides the ir code received by the roirreceiver instance, replacing it with the specified binary code ifuserdata setuserdata(user data as object) sets the user data that will be returned by getuserdata() getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set ifreceivedevent getencoding() as string returns the encodings setting of the roirreceiver instance this setting can be one of the following strings "nec" "rc5" (supported on the iguanaworks ir transceiver only)