mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
nusb/kb, aux/kbdfs: add brightness down/up media keys
This commit is contained in:
parent
6960465997
commit
b38a3d2a0d
4 changed files with 14 additions and 12 deletions
|
@ -45,12 +45,14 @@ enum {
|
|||
Kscrollonedown= KF|0x21,
|
||||
|
||||
/* multimedia keys - no refunds */
|
||||
Ksbwd= KF|0x22,
|
||||
Ksfwd= KF|0x23,
|
||||
Kpause= KF|0x24,
|
||||
Kvoldn= KF|0x25,
|
||||
Kvolup= KF|0x26,
|
||||
Kmute= KF|0x27,
|
||||
Ksbwd= KF|0x22, /* skip backwards */
|
||||
Ksfwd= KF|0x23, /* skip forward */
|
||||
Kpause= KF|0x24, /* play/pause */
|
||||
Kvoldn= KF|0x25, /* volume decrement */
|
||||
Kvolup= KF|0x26, /* volume increment */
|
||||
Kmute= KF|0x27, /* (un)mute */
|
||||
Kbrtdn= KF|0x28, /* brightness decrement */
|
||||
Kbrtup= KF|0x29, /* brightness increment */
|
||||
|
||||
Ksoh= 0x01,
|
||||
Kstx= 0x02,
|
||||
|
|
|
@ -271,7 +271,7 @@
|
|||
2 14 0
|
||||
2 15 0
|
||||
2 16 0xf022
|
||||
2 17 0
|
||||
2 17 0xf028
|
||||
2 18 0
|
||||
2 19 0
|
||||
2 20 0
|
||||
|
@ -280,7 +280,7 @@
|
|||
2 23 0
|
||||
2 24 0
|
||||
2 25 0xf023
|
||||
2 26 0
|
||||
2 26 0xf029
|
||||
2 27 0
|
||||
2 28 ^J
|
||||
2 29 0xf862
|
||||
|
|
|
@ -171,8 +171,8 @@ Rune kbtabesc1[Nscan] =
|
|||
{
|
||||
[0x00] 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
[0x08] 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
[0x10] Ksbwd, 0, 0, 0, 0, 0, 0, 0,
|
||||
[0x18] 0, Ksfwd, 0, 0, '\n', Kctl, 0, 0,
|
||||
[0x10] Ksbwd, Kbrtdn, 0, 0, 0, 0, 0, 0,
|
||||
[0x18] 0, Ksfwd, Kbrtup, 0, '\n', Kctl, 0, 0,
|
||||
[0x20] Kmute, 0, Kpause, 0, 0, 0, 0, 0,
|
||||
[0x28] 0, 0, 0, 0, 0, 0, Kvoldn, 0,
|
||||
[0x30] Kvolup, 0, 0, 0, 0, '/', 0, Kprint,
|
||||
|
|
|
@ -152,8 +152,8 @@ static char sctab[2*256] =
|
|||
[0x150] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x158] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x160] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x168] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x170] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x168] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9a,
|
||||
[0x170] 0x91, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x178] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x180] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
[0x188] 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
|
|
Loading…
Reference in a new issue