bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.72k stars 607 forks source link

Keyboard + Mouse for BT Classic example #88

Open benjaminaigner opened 6 years ago

benjaminaigner commented 6 years ago

Hi Matthias,

I've attached one example for a combination of mouse and keyboard in classic BT. Joystick is partly added (based on Arduino/Paul Stoffregen's Joystick), but no changes to the GATT table are made (result: non-functional).

keyboard_mouse.zip

Best wishes, Benjamin

BTW: Sry I cannot use BTStack in this case, we need for the FABI/FLipMouse devices complete FOSS stacks :-(.

mringwal commented 6 years ago

Thanks for the demo. In Classic HID, there's no GATT. Do you mean, there's no change to the HID Descriptor?

benjaminaigner commented 6 years ago

Ok, sry, you're right: I've changed the HID descriptor to add report a report ID, enabling mouse and keyboard. I did not manage to have this descriptor to be recognized as Joystick (under Linux), but Keyboard and Mouse work.