This is a great keyboard, but made for PCs. I'm not sure if it's possible given that, but it would be great if the top row of keys (home, search, mail, favorites 1-5, calculator) as well as the middle scroll button and lower back/forward keys could be recognized by BTT.
Generic USB support seems to recognise this Keyboard but it's quite cumbersome to use this to trigger actions. Would it make sense to add a specific trigger set for those kind of "consumer input devices"?
somebody just needs to create the analyzer once, then it can be shared among users. Based on your details the script would look like this
function analyzeDeviceInput(targetDevice, reportID, reportDataHex) {
let reportBuffer = buffer.Buffer.from(reportDataHex, 'hex');
// the values you see above are in hex format. To read such a byte
// use readUInt8(index).
if(reportBuffer.readUInt8(1) === 0x2d) {
log('trigger zoom in!');
bttTriggerDeviceTrigger(targetDevice, 'zoomin');
} else if(reportBuffer.readUInt8(1) === 0x2e) {
log('trigger zoom in!');
bttTriggerDeviceTrigger(targetDevice, 'zoomout');
}
// If you want to get the next report even though,
// the data has not changed, call this function:
// bttGetNextEvenWithoutChange(targetDevice, reportID)
}
Thanks for the very fast reply. I have to admit, that I don't know yet, how to use it. I added the script to the generic device configuration and entered both Trigger names in the "Provided Triggers" section. My reasoning was, that I also add an additional configuration within Generic devices where I'm already able to select one of the "provided triggers" and most interestingly HID display works but any assigned actions are not triggered.
I saw the difference and already set the right names. However there seems to be something specific with the zoom in/out "keys" (rather: jog/shuttles) - probably they trigger several times. Currently it works only once, then I have to go in the Generic Device configuration, click somewhere until the "Save" button appears again - when I click it, it works again once.