139 lines
5.4 KiB
C
139 lines
5.4 KiB
C
// Copyright 2019 Manna Harbour
|
|
// https://github.com/manna-harbour/miryoku
|
|
// generated -*- buffer-read-only: t -*-
|
|
|
|
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#pragma once
|
|
|
|
#include "miryoku_alternatives.h"
|
|
|
|
#if !defined(MIRYOKU_LAYER_BASE)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#if defined (MIRYOKU_ALPHAS_AZERTY)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_AZERTY_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_BEAKL15)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_BEAKL15_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_COLEMAK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_COLEMAK_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_COLEMAKDHK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_COLEMAKDHK_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_DVORAK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_DVORAK_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_HALMAK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_HALMAK_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_WORKMAN)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_WORKMAN_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_QWERTY)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_QWERTY_FLIP
|
|
#elif defined (MIRYOKU_ALPHAS_QWERTZ)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_QWERTZ_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_COLEMAKDH_FLIP
|
|
#endif
|
|
#else
|
|
#if defined (MIRYOKU_ALPHAS_AZERTY)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_AZERTY
|
|
#elif defined (MIRYOKU_ALPHAS_BEAKL15)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_BEAKL15
|
|
#elif defined (MIRYOKU_ALPHAS_COLEMAK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_COLEMAK
|
|
#elif defined (MIRYOKU_ALPHAS_COLEMAKDHK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_COLEMAKDHK
|
|
#elif defined (MIRYOKU_ALPHAS_DVORAK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_DVORAK
|
|
#elif defined (MIRYOKU_ALPHAS_HALMAK)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_HALMAK
|
|
#elif defined (MIRYOKU_ALPHAS_WORKMAN)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_WORKMAN
|
|
#elif defined (MIRYOKU_ALPHAS_QWERTY)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_QWERTY
|
|
#elif defined (MIRYOKU_ALPHAS_QWERTZ)
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_QWERTZ
|
|
#else
|
|
#define MIRYOKU_LAYER_BASE MIRYOKU_ALTERNATIVES_BASE_COLEMAKDH
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_NAV)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#if defined (MIRYOKU_NAV_INVERTEDT)
|
|
#define MIRYOKU_LAYER_NAV MIRYOKU_ALTERNATIVES_NAV_INVERTEDT_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_NAV MIRYOKU_ALTERNATIVES_NAV_FLIP
|
|
#endif
|
|
#else
|
|
#if defined (MIRYOKU_NAV_INVERTEDT)
|
|
#define MIRYOKU_LAYER_NAV MIRYOKU_ALTERNATIVES_NAV_INVERTEDT
|
|
#elif defined (MIRYOKU_NAV_VI)
|
|
#define MIRYOKU_LAYER_NAV MIRYOKU_ALTERNATIVES_NAV_VI
|
|
#else
|
|
#define MIRYOKU_LAYER_NAV MIRYOKU_ALTERNATIVES_NAV
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_MOUSE)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#if defined (MIRYOKU_NAV_INVERTEDT)
|
|
#define MIRYOKU_LAYER_MOUSE MIRYOKU_ALTERNATIVES_MOUSE_INVERTEDT_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_MOUSE MIRYOKU_ALTERNATIVES_MOUSE_FLIP
|
|
#endif
|
|
#else
|
|
#if defined (MIRYOKU_NAV_INVERTEDT)
|
|
#define MIRYOKU_LAYER_MOUSE MIRYOKU_ALTERNATIVES_MOUSE_INVERTEDT
|
|
#elif defined (MIRYOKU_NAV_VI)
|
|
#define MIRYOKU_LAYER_MOUSE MIRYOKU_ALTERNATIVES_MOUSE_VI
|
|
#else
|
|
#define MIRYOKU_LAYER_MOUSE MIRYOKU_ALTERNATIVES_MOUSE
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_MEDIA)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#if defined (MIRYOKU_NAV_INVERTEDT)
|
|
#define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_INVERTEDT_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_FLIP
|
|
#endif
|
|
#else
|
|
#if defined (MIRYOKU_NAV_INVERTEDT)
|
|
#define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_INVERTEDT
|
|
#elif defined (MIRYOKU_NAV_VI)
|
|
#define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA_VI
|
|
#else
|
|
#define MIRYOKU_LAYER_MEDIA MIRYOKU_ALTERNATIVES_MEDIA
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_NUM)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#define MIRYOKU_LAYER_NUM MIRYOKU_ALTERNATIVES_NUM_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_NUM MIRYOKU_ALTERNATIVES_NUM
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_SYM)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#define MIRYOKU_LAYER_SYM MIRYOKU_ALTERNATIVES_SYM_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_SYM MIRYOKU_ALTERNATIVES_SYM
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_FUN)
|
|
#if defined (MIRYOKU_LAYERS_FLIP)
|
|
#define MIRYOKU_LAYER_FUN MIRYOKU_ALTERNATIVES_FUN_FLIP
|
|
#else
|
|
#define MIRYOKU_LAYER_FUN MIRYOKU_ALTERNATIVES_FUN
|
|
#endif
|
|
#endif
|
|
|
|
#if !defined(MIRYOKU_LAYER_BUTTON)
|
|
#define MIRYOKU_LAYER_BUTTON MIRYOKU_ALTERNATIVES_BUTTON
|
|
#endif
|