adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
601 stars 489 forks source link

Mouse HID Pan function doesn't work #758

Open milador opened 1 year ago

milador commented 1 year ago

Operating System

Windows 10

IDE version

Arduino 1.8.19

Board

ItsyBitsy nRF52840 Express

BSP version

1.3

Sketch

The mouse hid pan function doesn't seem to be work. I tested the following code and no luck:

blehid.mousePan(10); delay(50); blehid.mouseButtonRelease();

It seems the functionality is commented in BLEHidAdafruit.cpp around line 209.

What happened ?

The mouse hid pan function doesn't seem to perform any action.

How to reproduce ?

  1. Add the mouse pan action to hid example
  2. Upload the code to nRF52840 board
  3. Connect the board to a host device via bluetooth

Debug Log

No response

Screenshots

No response

hathach commented 1 year ago

pan won't probably work. Most mouse pan use AC Consumer Pan instead though. Uncommented it won't get it work, and can cause device disabled by OS. Not sure, I forgot, you can give it a try though.