Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?

I'm working on a new nRF52840 based design that will be both a HID keyboard and a touchpad in one - so I've been working with nRF Desktop for my nRF52840 devkit, trying to merge the prj_gmouse.conf prj_keyboard.conf files into one that will pretend to be both a mouse and a keyboard at the same time.

I figured it would report as a keyboard, and two of the devkit buttons would do the simulated button presses and the other two would do the simulated mouse motion thing - but what I've got now doesn't even show up on a Bluetooth scanner so clearly I've got it in a broken state.  See image below of my current prj.conf compared to the keyboard one.

Anyway - what is the right way, assuming it's even possible, to have one nRF52840 send both keyboard AND mouse information over HID?

Oh - I'm using VSCode and SDK 2.0.0 currently (though I can upgrade to the latest if that would help)

Thanks,

Glen

  • Thanks Priyanka - I'm glad you got it working - that gives me a lot of confidence that our project is possible. I'll try it out as soon as I can. If you don't mind I'll leave this issue open for now until I've had a chance to test it.

    Edit: This worked - I ended up using nRF Connect version 2.1.0. Some of the items in the .conf have changed with 2.2.0 (I'm sure it would be easy to reconcile but I'll stick with what's working now). Thanks!

Related