Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it posible to add next and previous track? #163

Open
yorgios69 opened this issue Jan 31, 2023 · 1 comment
Open

Is it posible to add next and previous track? #163

yorgios69 opened this issue Jan 31, 2023 · 1 comment

Comments

@yorgios69
Copy link

Hi, i have been working with the gamepad library just clear, no issues, in the BLE Keyboar library there are the next and previous track functions but with the BLEKeyboard there are a lot of issues, so it its possible to add the next andd previous track to the BLEgamepad library?

@LeeNX
Copy link

LeeNX commented May 5, 2023

Should be possible, by adding additional Consumer Page entries, something similar to https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/450402/hid-consumer-page-report-descriptor-compatibility-issues

0x09, 0xb3, //       USAGE (Fast Forward)        // does scan next track on osx, but otherwise works great
0x09, 0xb4, //       USAGE (Rewind)              // does scan previous track on osx, but otherwise works great
0x09, 0xb5, //       USAGE (Scan Next Track)     // works great in windows & osx
0x09, 0xb6, //       USAGE (Scan Previous Track) // works great in windows & osx

Quick hack, would be to change the HID for Volume Inc/Dec -

if (configuration.getIncludeVolumeInc())

Another option would be to make it configurable, but I am then thinking how much of the HID table should we include? Does including all these options make the library any better or possible slower? That might be another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants