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

when I use Keyboard.h, could I press keycode instead of keyASCII? #26

Closed
ljq29 opened this issue Dec 3, 2019 · 11 comments
Closed

when I use Keyboard.h, could I press keycode instead of keyASCII? #26

ljq29 opened this issue Dec 3, 2019 · 11 comments
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@ljq29
Copy link

ljq29 commented Dec 3, 2019

It is generally accepted that when the header file Keyboard.h is used, some control keys can be sent through the Keyboard.press (key) function. But for keys without ASCII values, such as KEYCODE_VOLUME_UP and KEYCODE_VOLUME_DOWN, how should they be sent to the host through arduino?

@anaicagrouver
Copy link

0x80 Keyboard Volume Up
0x81 Keyboard Volume Down
0x7F Keyboard Mute
You can also see the list here

@thekunalsaini
Copy link

@ljq29 you can use hex codes for this

@ljq29
Copy link
Author

ljq29 commented Mar 18, 2020

@ljq29 you can use hex codes for this

So, from where I can find the table of keycode 2 hex?

@thekunalsaini

This comment has been minimized.

@thekunalsaini

This comment has been minimized.

@edgar-bonet
Copy link
Collaborator

KEYCODE_VOLUME_UP and KEYCODE_VOLUME_DOWN

On the keyboards I tried, these keys use a different endpoint and a different protocol than all the “regular” keys. They can thus not be sent by the Keyboard library. Not without heavy modifications.

@ljq29
Copy link
Author

ljq29 commented Oct 18, 2021

KEYCODE_VOLUME_UP and KEYCODE_VOLUME_DOWN

On the keyboards I tried, these keys use a different endpoint and a different protocol than all the “regular” keys. They can thus not be sent by the Keyboard library. Not without heavy modifications.

What about functional keyboard? Some keyboard do have VOLUME_UP and VOLUME_DOWN key, such as logitech K380.

@edgar-bonet
Copy link
Collaborator

@ljq29: Yes, that is what I am talking about. I have a couple of keyboards that, in addition to all the regular keys, have these VOLUME_UP and VOLUME_DOWN keys. My tests show that those keys are sent through a different USB endpoint.

@ljq29
Copy link
Author

ljq29 commented Oct 23, 2021

@ljq29: Yes, that is what I am talking about. I have a couple of keyboards that, in addition to all the regular keys, have these VOLUME_UP and VOLUME_DOWN keys. My tests show that those keys are sent through a different USB endpoint.

So, is this libraries will not support VOLUME_DOWN and VOLUME_UP keys?

@edgar-bonet
Copy link
Collaborator

@ljq29: Indeed. This library does not support the VOLUME_DOWN and VOLUME_UP keys.

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Mar 6, 2022
@edgar-bonet
Copy link
Collaborator

Closing this as a duplicate of issue #17.

@edgar-bonet edgar-bonet closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2024
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

5 participants