From 15434c3a167f0c992e0f55af5d1d6d2ea6a31878 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 11 May 2020 21:59:33 +0900 Subject: [PATCH] hhkb: Add keys for Display Brightness Control --- keyboard/hhkb/unimap_hasu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keyboard/hhkb/unimap_hasu.c b/keyboard/hhkb/unimap_hasu.c index d88a71d9..1f1ff0b0 100644 --- a/keyboard/hhkb/unimap_hasu.c +++ b/keyboard/hhkb/unimap_hasu.c @@ -37,6 +37,10 @@ enum macro_id { #define AC_FRWD ACTION_MODS_KEY(MOD_LALT, KC_RIGHT) #define AC_ENT_ ACTION_MODS_TAP_KEY(MOD_RCTL, KC_ENT) +// Display Brightness Control +// https://github.com/tmk/tmk_keyboard/issues/370#issuecomment-279113313 +// BRTI(increment) and BRTD(decrement) are defined in actionmap.h + // Function: LShift with tap '(' #define AC_LPRN ACTION_FUNCTION_TAP(LSHIFT_LPAREN) // Macro: say hello @@ -59,7 +63,7 @@ const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = { PWR, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL, CAPS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS,UP, TRNS, TRNS, TRNS,VOLD,VOLU,MUTE,TRNS,TRNS,PAST,PSLS,HOME,PGUP,LEFT,RGHT, PENT, - TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,PPLS,PMNS,END, PGDN,DOWN, TRNS,TRNS, + TRNS, BRTD,BRTI,SLEP,WAKE,TRNS,PPLS,PMNS,END, PGDN,DOWN, TRNS,TRNS, TRNS,TRNS, TRNS, TRNS,TRNS), [2] = UNIMAP_HHKB( -- 2.46.2