Trying to get the first two buttons (of sixteen in total) to relate to the first two parameter pages on a device.
Not sure if im using the right call setParameterPage()
or if im missing something else
Any help much appreciated
Code: Select all
var parameters = {
offset: 25
,
control: function(data1, data2)
{
if(data1 >= this.offset && data1 < this.offset + 8 ){
cursorDevice.getParameter(data1 - this.offset).set(data2,128);
}
},
pageScroll: function(data1, data2)
{
if(data1 == 33 && data2 > 0){
cursorDevice.setParameterPage(2);
}else if(data1 == 34 && data2 > 0){
cursorDevice.setParameterPage(3);
}
},
update: function()
{
for(var p = 0; p <8; p ++)
{
cursorDevice.getParameter(p).setIndication(true)
}
}
}