mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-06-08 06:29:33 +00:00
233cda3e25
Port the old .h macro-based keymap definition to new C module based definition.
51 lines
1.6 KiB
C
51 lines
1.6 KiB
C
// -*- mode: C; tab-width: 4 ; indent-tabs-mode: nil -*-
|
|
//
|
|
// Unfified Keyboard Project
|
|
// ASDF keyboard firmware
|
|
//
|
|
// asdf_keymap_classic_add_map.h
|
|
//
|
|
// defines keymap matrices and add_map() function for classic layouts
|
|
//
|
|
// Copyright 2019 David Fenyes
|
|
//
|
|
// 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 3 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 <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
// To use this ascii for a new keymap, edit the keymaps definitions as
|
|
// desired. The keymaps are organized from row 0, counting upward, and each row
|
|
// includes the columns from 0-NUM_COLS.
|
|
//
|
|
|
|
#if !defined(ASDF_KEYMAP_CLASSIC_ADD_MAP_H)
|
|
#define ASDF_KEYMAP_CLASSIC_ADD_MAP_H
|
|
|
|
#include "asdf_modifiers.h"
|
|
|
|
typedef enum {
|
|
CLASSIC_PLAIN_MAP,
|
|
CLASSIC_CAPS_MAP,
|
|
CLASSIC_SHIFT_MAP,
|
|
CLASSIC_CTRL_MAP,
|
|
} classic_map_index_t;
|
|
|
|
|
|
// function prototypes
|
|
void classic_add_map(const classic_map_index_t map_index, modifier_index_t modifier_index);
|
|
|
|
#endif /* !defined (ASDF_KEYMAP_CLASSIC_ADD_MAP_H) */
|
|
|
|
//-------|---------|---------+---------+---------+---------+---------+---------+
|
|
// Above line is 80 columns, and should display completely in the editor.
|