- Home /
How to detect media button pressed (e.g. volume up/down, next/previous track) event?
Hello, I have a bluetooth media button paired with my Window 10 machine and hoping to detect its key-pressed event from Unity. The media button have 5 inputs, which are volume up/down, next/previous track, and playpause buttons.
I know that WPF's KeyDown event is able to detect them, and the assigned keycodes are: VolumeDown = 174, VolumeUp = 175, MediaNextTrack = 176, MediaPreviousTrack = 177, MediaPlayPause = 179,
However, Unity's KeyCode list doesn't seem to have them and thus I am not able to use GetKeyDown event for them. Is there any way to add them to Unity's keycodes, so that I can use the bluetooth button as input?
Your answer
Follow this Question
Related Questions
Panel isn't opening after hitting the tab key, and its not even saying I pressed the key? 0 Answers
Problem with pressing multiple keys at once? 2 Answers
Increase when the Key is Down and Decrease when the Key is Up 2 Answers
How to get Key with KeyCode.Question? 1 Answer
Numpad Keypress not being registered on mobile phone. 0 Answers