diff options
| author | tmk <nobody@nowhere> | 2013-06-23 09:19:04 +0900 | 
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-06-23 09:19:04 +0900 | 
| commit | 5a0415749d6cd6a095d9c3fbb335360ec5fa59e0 (patch) | |
| tree | 7ed39e24295fbf853625a12fe273ea3ab4c7b202 /common/action.c | |
| parent | 9de9d719527c7a8cac71d0bc49ba1d2d4f63cf06 (diff) | |
| parent | 25ad212c4adae5a27dd2d5a4e9d6bcdfc17edb1b (diff) | |
| download | firmware-5a0415749d6cd6a095d9c3fbb335360ec5fa59e0.tar.gz firmware-5a0415749d6cd6a095d9c3fbb335360ec5fa59e0.tar.bz2 firmware-5a0415749d6cd6a095d9c3fbb335360ec5fa59e0.zip | |
Merge branch 'Wraul-kmac'
Diffstat (limited to 'common/action.c')
| -rw-r--r-- | common/action.c | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/common/action.c b/common/action.c index c7c8f71f2..b1fa0e31c 100644 --- a/common/action.c +++ b/common/action.c @@ -20,6 +20,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  #include "mousekey.h"  #include "command.h"  #include "led.h" +#include "backlight.h"  #include "action_layer.h"  #include "action_tapping.h"  #include "action_oneshot.h" @@ -292,6 +293,26 @@ void process_action(keyrecord_t *record)              action_macro_play(action_get_macro(record, action.func.id, action.func.opt));              break;  #endif +#ifdef BACKLIGHT_ENABLE +        case ACT_BACKLIGHT: +            if (!event.pressed) { +                switch (action.backlight.id) { +                    case BACKLIGHT_INCREASE: +                        backlight_increase(); +                        break; +                    case BACKLIGHT_DECREASE: +                        backlight_decrease(); +                        break; +                    case BACKLIGHT_TOGGLE: +                        backlight_toggle(); +                        break; +                    case BACKLIGHT_STEP: +                        backlight_step(); +                        break; +                } +            } +            break; +#endif          case ACT_COMMAND:              break;  #ifndef NO_ACTION_FUNCTION | 
