Comments (2)
Multimedia keys do work on Windows, but code examples and wiki can be kinda misleading.
The ImprovedKeyboard example contains a comment
// Only works with the lower 255 keys and on linux only.
But it's true only for Keyboard class.
There are Consumer and SingleConsumer classes that work for media keys on Windows pretty well.
Use Consumer.write(MEDIA_VOLUME_UP);
or whatever media key you need.
The list of key aliases can be found in ConsumerAPI.h
In regards to Consumer or SingleConsumer there is a brief explanation of USB endpoints in API-Documentation
from hid.
Multimedia keys do work on Windows, but code examples and wiki can be kinda misleading. The ImprovedKeyboard example contains a comment
// Only works with the lower 255 keys and on linux only.
But it's true only for Keyboard class.There are Consumer and SingleConsumer classes that work for media keys on Windows pretty well. Use
Consumer.write(MEDIA_VOLUME_UP);
or whatever media key you need. The list of key aliases can be found in ConsumerAPI.hIn regards to Consumer or SingleConsumer there is a brief explanation of USB endpoints in API-Documentation
TYSM this was the last part of my code that didn't work and now it does.
from hid.
Related Issues (20)
- LED status beyond 0x07
- #pragma message "Using default ASCII layout for keyboard modules" HOT 1
- System.write(SYSTEM_WAKE_UP); applies to every buttonpress HOT 4
- Any way to set Serial Number on RawHID? HOT 1
- Support for Arduino DUE?
- reset USB whilst script is running
- Fails to build/link using Arduino SAMD Boards version 1.8.13 HOT 2
- Request for help implementing HID protocol in BrailleTouch project
- BootKeyboard on Leonardo connected to the nintendo switch only types the numbers HOT 1
- AbsoluteMouse.moveTo on a Nano 33 IOT
- RawHID Feature Report not working due to missing Feature Report in the HID Report Descriptor
- typeKey(KEY_RETURN); types "(" instead of enter. HOT 1
- Gamepad input doesn't register in any game
- RawHID Get_Report support for Input and Feature Report
- Dual stick xy support
- RawHID not working HOT 1
- Is there a way to detect connection to a keyboard client?
- Fix broken link on wiki
- Not compatible with Arduino Uno R4 boards HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hid.