36 řádky
877 B
C
36 řádky
877 B
C
#ifndef ACTIONMAP_COMMON_H
|
|
#define ACTIONMAP_COMMON_H
|
|
|
|
#include "rgblight.h"
|
|
|
|
enum function_id {
|
|
RGBLED_TOGGLE,
|
|
RGBLED_STEP_MODE,
|
|
RGBLED_INCREASE_HUE,
|
|
RGBLED_DECREASE_HUE,
|
|
RGBLED_INCREASE_SAT,
|
|
RGBLED_DECREASE_SAT,
|
|
RGBLED_INCREASE_VAL,
|
|
RGBLED_DECREASE_VAL,
|
|
};
|
|
|
|
#define ACTIONMAP( \
|
|
K00, K01, K02, K03, K04, \
|
|
K10, K11, K12, K13, K14, \
|
|
K20, K21, K22, K23, K24, \
|
|
\
|
|
K30, K31, K32, K33, K34, \
|
|
K40, K41, K42, K43, K44, \
|
|
K50, K51, K52, K53, K54 \
|
|
) { \
|
|
{ AC_##K00, AC_##K01, AC_##K02, AC_##K03, AC_##K04 }, \
|
|
{ AC_##K10, AC_##K11, AC_##K12, AC_##K13, AC_##K14 }, \
|
|
{ AC_##K20, AC_##K21, AC_##K22, AC_##K23, AC_##K24 }, \
|
|
\
|
|
{ AC_##K34, AC_##K33, AC_##K32, AC_##K31, AC_##K30 }, \
|
|
{ AC_##K44, AC_##K43, AC_##K42, AC_##K41, AC_##K40 }, \
|
|
{ AC_##K54, AC_##K53, AC_##K52, AC_##K51, AC_##K50 } \
|
|
}
|
|
|
|
#endif
|