We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c77b4e5 commit 9219d32Copy full SHA for 9219d32
src/linux/wayland/keycodes.rs
@@ -153,7 +153,15 @@ decl_keycodes!(
153
Kp7, 71,
154
Kp8, 72,
155
Kp9, 73,
156
- KpDelete, 83
+ KpDelete, 83,
157
+ VolumeMute, 113,
158
+ VolumeDown, 114,
159
+ VolumeUp, 115,
160
+ NextTrack, 163,
161
+ PlayPause, 164,
162
+ PreviousTrack, 165,
163
+ PlayCd, 200,
164
+ Function, 464
165
);
166
167
#[rustfmt::skip]
@@ -259,7 +267,14 @@ decl_keycodes_uinput!(
259
267
Key::Delete , UKey::Delete,
260
268
Key::Pause , UKey::Pause,
261
269
Key::MetaLeft , UKey::LeftMeta,
262
- Key::PrintScreen , UKey::Print
270
+ Key::PrintScreen , UKey::Print,
271
+ Key::PlayPause, UKey::PlayPause,
272
+ Key::PlayCd, UKey::PlayCD,
273
+ Key::VolumeMute, UKey::Mute,
274
+ Key::VolumeDown, UKey::VolumeDown,
275
+ Key::VolumeUp, UKey::VolumeUp,
276
+ Key::NextTrack, UKey::NextSong,
277
+ Key::PreviousTrack, UKey::PreviousSong
263
278
//Key::IntlBackslash , UKey::Backslash
264
279
265
280
src/rdev.rs
@@ -220,6 +220,15 @@ pub enum Key {
220
Kp9,
221
KpDelete,
222
Function,
223
+ VolumeUp,
224
+ VolumeDown,
225
+ VolumeMute,
226
+ BrightnessUp,
227
+ BrightnessDown,
228
+ PreviousTrack,
229
+ PlayPause,
230
+ PlayCd,
231
+ NextTrack,
232
Unknown(u32),
233
}
234
src/windows/keycodes.rs
@@ -145,7 +145,13 @@ decl_keycodes! {
145
Kp7, 103,
146
Kp8, 104,
147
Kp9, 105,
148
- KpDelete, 110
+ KpDelete, 110,
149
+ VolumeMute, 173,
150
+ VolumeDown, 174,
151
+ VolumeUp, 175,
152
+ NextTrack, 176,
+ PreviousTrack, 177,
+ PlayPause, 179
#[cfg(test)]
0 commit comments