Difference between revisions of "Media key"

From Deskthority wiki
Jump to navigation Jump to search
(Sorted keyboards. Added KeyCool keyboards)
(Moving Codes to Scancode)
 
(6 intermediate revisions by the same user not shown)
Line 34: Line 34:
 
!Fn-F11
 
!Fn-F11
 
!Fn-F12
 
!Fn-F12
!
+
!Other
!Print Screen
 
!Scroll lock
 
!Pause
 
!(Dedicated keys)
 
 
|-
 
|-
 
| [[Apple Aluminium Keyboard]] A1243
 
| [[Apple Aluminium Keyboard]] A1243
Line 47: Line 43:
 
|
 
|
 
|
 
|
| Rewind
+
| Rewind (Previous track)
 
| Play/Pause
 
| Play/Pause
| Fast Forward
+
| Fast Forward (Next track)
 
| Mute
 
| Mute
 
| Volume Down
 
| Volume Down
 
| Volume Up
 
| Volume Up
| Eject
+
| Eject, F13..F19
| F13
 
| F14
 
| F15
 
| F16 F17 F18 F19
 
 
|-
 
|-
| [[Cooler Master QuickFire Rapid|CMStorm QuickFire Rapid]]
+
| Arachnid Recore
 
|  
 
|  
 
|
 
|
Line 68: Line 60:
 
| Previous track
 
| Previous track
 
| Next track
 
| Next track
|
+
| Media player
 
| Mute
 
| Mute
 
| Volume Down
 
| Volume Down
 
| Volume Up
 
| Volume Up
 +
|
 +
|-
 +
| [[Cooler Master QuickFire Rapid|CMStorm QuickFire Rapid]]
 
|  
 
|  
 
|
 
|
 
|
 
|
 
|
 
|
 +
| Play/Pause
 +
| Stop
 +
| Previous track
 +
| Next track
 
|
 
|
 +
| Mute
 +
| Volume Down
 +
| Volume Up
 +
|
 
|-
 
|-
 
| [[Ducky]] G2Pro/Shine
 
| [[Ducky]] G2Pro/Shine
Line 88: Line 91:
 
|
 
|
 
|  
 
|  
|
 
|
 
|
 
|
 
 
|
 
|
 
|
 
|
Line 107: Line 106:
 
|
 
|
 
|  
 
|  
|
 
|
 
|
 
|
 
 
|
 
|
 
|
 
|
Line 130: Line 125:
 
| (Windows lock)
 
| (Windows lock)
 
|
 
|
|
 
|
 
|
 
|
 
 
|-
 
|-
 
| KeyCool 108
 
| KeyCool 108
Line 148: Line 139:
 
| Volume Up
 
| Volume Up
 
| (Windows lock)
 
| (Windows lock)
 +
| Lock Sleep, Calculator, ... ?
 +
|-
 +
| Matias Quiet Pro Mini (PC)
 +
| Rewind (Previous track)
 +
| Forward (Next track)
 
|
 
|
 
|
 
|
 
|
 
|
 
|
 
|
| Lock Sleep, Calculator, ... ?
+
|
 
+
|
 +
|
 +
|
 +
|
 +
|
 +
| Play/Pause on Esc, Mute Volume Up/Down on Fn-Arrow key
 
|-
 
|-
 
| Max Keyboard Blackbird
 
| Max Keyboard Blackbird
Line 162: Line 163:
 
| Previous Track
 
| Previous Track
 
| Next Track
 
| Next Track
|
 
|
 
|
 
 
|
 
|
 
|
 
|
Line 187: Line 185:
 
|
 
|
 
|
 
|
 +
|-
 +
| Noppoo Lolita
 +
| My Computer
 +
| Web Browser
 +
| Calculator
 +
| Media Player
 +
| Previous Track
 +
| Next Track
 +
| Play/Pause
 +
| (NKRO)
 +
| Mute
 +
| Volume Down
 +
| Volume Up
 +
|
 +
|
 +
|-
 +
| Noppoo Lolita Spyder
 +
| Previous Track
 +
| Play/Pause
 +
| Next Track
 +
| Stop
 +
| Mute
 +
| Volume Down
 +
| Volume Up
 +
|
 +
|
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| Plum 96
 +
| Mute
 +
| Volume Down
 +
| Volume Up
 +
| Play/Pause
 +
| Previous Track
 +
| Next Track
 +
| Home/Browser
 +
| My computer
 
|
 
|
|
+
| (Debounce dec)
 +
| (Debounce inc)
 
|
 
|
 
|
 
|
Line 199: Line 238:
 
| Previous Track
 
| Previous Track
 
| Next Track
 
| Next Track
|
 
|
 
|
 
|
 
 
|
 
|
 
|
 
|
Line 227: Line 262:
  
 
Some vendors have used their own codes that have been activated first after having received a "magic" code from the host's keyboard driver.
 
Some vendors have used their own codes that have been activated first after having received a "magic" code from the host's keyboard driver.
 
===Codes===
 
There are more codes in the USB standard that those below, but not all are supported by major operating systems and apps.
 
<ref>Universal Serial Bus (USB): HID Usage Tables,10/28/2004,Version 1.12</ref>
 
<ref>Windows Platform Design Notes: Keyboard Scan Code Specification,
 
Revision 1.3a; revised March 2000. Retrieved from [http://msdn.microsoft.com/en-us/windows/hardware/gg463372.aspx Archive: Key Support, Keyboard Scan Codes, and Windows] on 2013-09-19</ref>
 
<ref>USB HID to PS/2 Scan Code Translation Table. Retrieved from [http://msdn.microsoft.com/en-us/windows/hardware/gg463372.aspx Archive: Key Support, Keyboard Scan Codes, and Windows] on 2013-09-19</ref>
 
<ref>Sun USB media key mappings, extracted from looking at the source code of [https://github.com/stefanberndtsson/type5usb type5usb].</ref>.
 
 
Values are in hexadecimal.
 
 
{|class="wikitable"
 
! Function
 
! colspan="3" | USB
 
! colspan="2" | PS/2 (set 2)
 
! colspan="4" | OS support
 
|-
 
! System
 
! Page
 
! Code
 
! Type
 
! Make
 
! Break
 
! Windows
 
! Mac
 
! X
 
! Sun
 
|-
 
| rowspan="2" | Power
 
| 01
 
| 81
 
| One-shot
 
| rowspan="2" | E0 37
 
| rowspan="2" | E0 F0 37
 
| Windows 95
 
|
 
| X
 
|
 
|-
 
| 07
 
| 66
 
| One-shot
 
|
 
| Mac
 
| X
 
| Sun
 
|-
 
| Sleep
 
| 01
 
| 82
 
| One-shot
 
| E0 3F
 
| E0 F0 3F
 
| Windows 95
 
|
 
|
 
|
 
|-
 
| Wake
 
| 01
 
| 83
 
| One-shot
 
| E0 5E
 
| E0 F0 5E
 
| Windows 95
 
|
 
|
 
|
 
|-
 
! Media
 
! Page
 
! Code
 
! Type
 
! Make
 
! Break
 
! Windows
 
! Mac
 
! X
 
! Sun
 
|-
 
| Next Track
 
| 0C
 
| B5
 
| One-shot
 
| E0 4D
 
| E0 F0 4D
 
| Windows
 
| Mac
 
| X
 
|
 
|-
 
| Previous Track
 
| 0C
 
| B5
 
| One-shot
 
| E0 15
 
| E0 F0 15
 
| Windows
 
| Mac
 
| X
 
|
 
|-
 
| Stop
 
| 0C
 
| B7
 
| One-shot
 
| E0 3B
 
| E0 F0 3B
 
| Windows
 
| Mac
 
| X
 
|
 
|-
 
| Eject
 
| 0C
 
| B8
 
| One-shot
 
|
 
|
 
|
 
| Mac
 
|
 
|
 
|-
 
| Play / Pause
 
| 0C
 
| CD
 
| One-shot
 
| E0 34
 
| E0 F0 34
 
| Windows
 
| Mac
 
| X
 
|
 
|-
 
| Volume (knob)
 
| 0C
 
| E0
 
| Linear
 
|
 
|
 
| Windows 98
 
|
 
|
 
|
 
|-
 
| rowspan="2" | Mute
 
| 0C
 
| E2
 
| On/off
 
| rowspan="2" | E0 23
 
| rowspan="2" | E0 F0 23
 
| Windows 98
 
| Mac
 
| X
 
|
 
|-
 
| 07
 
| 7F
 
| One-shot
 
|
 
|
 
|
 
| Sun
 
|-
 
| Bass (knob)
 
| 0C
 
| E3
 
| Linear
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
| Treble (knob)
 
| 0C
 
| E4
 
| Linear
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
| Bass Boost
 
| 0C
 
| E5
 
| On/off
 
|
 
|
 
| Windows 98
 
|
 
|
 
|
 
|-
 
| Loudness
 
| 0C
 
| E7
 
| On/off
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
| rowspan="2" | Volume Up
 
| 0C
 
| E9
 
| Re-trigger
 
| rowspan="2" | E0 32
 
| rowspan="2" | E0 F0 32
 
| Windows 98
 
| Mac
 
| X
 
|
 
|-
 
| 07
 
| 80
 
| One-shot
 
|
 
|
 
|
 
| Sun
 
|-
 
| rowspan="2" | Volume Down
 
| 0C
 
| EA
 
| Re-trigger
 
| rowspan="2" | E0 21
 
| rowspan="2" | E0 F0 21
 
| Windows 98
 
| Mac
 
| X
 
|
 
|-
 
| 07
 
| 81
 
| One-shot
 
|
 
|
 
|
 
| Sun
 
|-
 
| Bass Up
 
| 0C
 
| 0152
 
| Re-trigger
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
| Bass Down
 
| 0C
 
| 0153
 
| Re-trigger
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
| Treble Up
 
| 0C
 
| 0154
 
| Re-trigger
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
| Treble Down
 
| 0C
 
| 0155
 
| Re-trigger
 
|
 
|
 
| Windows 2000
 
|
 
|
 
|
 
|-
 
! Launch application
 
! Page
 
! Code
 
! Type
 
! Make
 
! Break
 
! Windows
 
! Mac
 
! X
 
! Sun
 
|-
 
| Media Player
 
| 0C
 
| 0183
 
| Selector
 
| E0 50
 
| E0 F0 50
 
| Windows
 
|
 
|
 
|
 
|-
 
| Email
 
| 0C
 
| 018A
 
| Selector
 
| E0 48
 
| E0 F0 48
 
| Windows
 
|
 
|
 
|
 
|-
 
| Calculator
 
| 0C
 
| 0192
 
| Selector
 
| E0 2B
 
| E0 F0 2B
 
| Windows
 
|
 
|
 
|
 
|-
 
| My Computer
 
| 0C
 
| 0194
 
| Selector
 
| E0 40
 
| E0 F0 40
 
| Windows
 
|
 
|
 
|
 
|-
 
! Web browser
 
! Page
 
! Code
 
! Type
 
! Make
 
! Break
 
! Windows
 
! Mac
 
! X
 
! Sun
 
|-
 
| Search
 
| 0C
 
| 0221
 
| Selector
 
| E0 10
 
| E0 F0 10
 
| Windows
 
|
 
|
 
|
 
|-
 
| Browser/Home
 
| 0C
 
| 0223
 
| Selector
 
| E0 3A
 
| E0 F0 3A
 
| Windows
 
|
 
|
 
|
 
|-
 
| Back
 
| 0C
 
| 0224
 
| Selector
 
| E0 38
 
| E0 F0 38
 
| Windows
 
|
 
|
 
|
 
|-
 
| Forward
 
| 0C
 
| 0225
 
| Selector
 
| E0 30
 
| E0 F0 30
 
| Windows
 
|
 
|
 
|
 
|-
 
| Stop
 
| 0C
 
| 0226
 
| Selector
 
| E0 28
 
| E0 F0 28
 
| Windows
 
|
 
|
 
|
 
|-
 
| Refresh
 
| 0C
 
| 0227
 
| Selector
 
| E0 20
 
| E0 F0 20
 
| Windows
 
|
 
|
 
|
 
|-
 
| Bookmarks
 
| 0C
 
| 022A
 
| Selector
 
| E0 18
 
| E0 F0 18
 
| Windows
 
|
 
|
 
|
 
|}
 
  
 
==References==
 
==References==

Latest revision as of 16:48, 7 May 2018

A Media key is a key with a special purpose for a specific type of applications or operating system functions. Normally, these functions are concerned with media playback, but the term has been used for other functions as well.

A media key can be a dedicated key, or another key can act like a media key in conjunction with the Fn key. Some USB keyboards contain also a knob or roller, usually for volume control.

Gallery

Function-key mappings

On many keyboards, media keys are dedicated keys with no other function.

On some keyboard, media key functions are on Function keys when holding a Fn key.

On the Apple aluminium keyboards with MacOS, the default behaviour is the reverse: numbered function keys are available on the media keys when holding down Fn. This behaviour can be switched in MacOS.

On some PC keyboards from Microsoft, the Fn "key" is not a modifier key but a toggle switch.

Keyboard Fn-F1 Fn-F2 Fn-F3 Fn-F4 Fn-F5 Fn-F6 Fn-F7 Fn-F8 Fn-F9 Fn-F10 Fn-F11 Fn-F12 Other
Apple Aluminium Keyboard A1243 Brightness Down Brightness Up Exposé / Mission Control Dashboard / Launchpad Rewind (Previous track) Play/Pause Fast Forward (Next track) Mute Volume Down Volume Up Eject, F13..F19
Arachnid Recore Play/Pause Stop Previous track Next track Media player Mute Volume Down Volume Up
CMStorm QuickFire Rapid Play/Pause Stop Previous track Next track Mute Volume Down Volume Up
Ducky G2Pro/Shine Mute Volume Down Volume Up Play/Pause Stop Previous track Next track Calculator Computer Email Home/Browser
iOne (Func KB-460, QPad MK-50 etc.) Mute Volume Down Volume Up Play/Pause Previous track Next track
KeyCool 84, KeyCool 87 Computer Home/Browser Calculator Media Player Previous Track Next Track Play/Pause Stop Mute Volume Down Volume Up (Windows lock)
KeyCool 108 Computer Home/Browser Mail Media Player Previous Track Next Track Play/Pause Stop Mute Volume Down Volume Up (Windows lock) Lock Sleep, Calculator, ... ?
Matias Quiet Pro Mini (PC) Rewind (Previous track) Forward (Next track) Play/Pause on Esc, Mute Volume Up/Down on Fn-Arrow key
Max Keyboard Blackbird Mute Volume Down Volume Up Play/Pause Previous Track Next Track
Mionix Zibal 60 Mute Volume Down Volume Up Play/Pause Stop Previous Track Next Track
Noppoo Lolita My Computer Web Browser Calculator Media Player Previous Track Next Track Play/Pause (NKRO) Mute Volume Down Volume Up
Noppoo Lolita Spyder Previous Track Play/Pause Next Track Stop Mute Volume Down Volume Up
Plum 96 Mute Volume Down Volume Up Play/Pause Previous Track Next Track Home/Browser My computer (Debounce dec) (Debounce inc)
SteelSeries 6GV2 Mute Volume Down Volume Up Play/Pause Previous Track Next Track

Protocol

Media keys usually emit distinct codes to the host.

USB

In the USB HID ("Human Interface Device") standard, while most key codes are in the "Keyboard/Keypad" usage page (0x07), most most media keys are in "Consumer" usage page (0x0C). System control keys (Power, Sleep, Wake) are in the "Generic Desktop" usage page (0x01).

The "Consumer Usage Page" has also codes for linear relative values for volume control, bass and treble. While it may appear to be analogue, the knob or roller is usually connected to a rotary encoder. The values are relative to the volume level set by the user in the operating system and application software. If the controls had absolute values, they would have needed to be motorized and under computer control, which is something that the USB HID specification does not support.

The controls in each Usage Page are transmitted in a separate packet. Therefore, media keys may have separate rollover characteristics from regular keys.

PS/2

For PS/2, Microsoft has standardized media key scancodes for Windows.

Some vendors have used their own codes that have been activated first after having received a "magic" code from the host's keyboard driver.

References