mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-06-12 03:29:31 +00:00
01008af937
- Split asdf_virtual.c into asdf_physical.c and asdf_virtual.c, moving the functions that handle the physical resources to asdf_physical.c - cleaned up nomenclature to be more consistent and less confusing. - fixed keymap files and tests to use asdf_physical.c/h and new nomenclature. - added asdf_physical.c to Makefiles.
55 lines
2.0 KiB
C
55 lines
2.0 KiB
C
// -*- mode: C; tab-width: 4 ; indent-tabs-mode: nil -*-
|
|
//
|
|
// Unfified Keyboard Project
|
|
// ASDF keyboard firmware
|
|
//
|
|
// asdf_keymap_defs.h
|
|
//
|
|
// gathers up all the keymap definitions to be included in the firmware.
|
|
//
|
|
// 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/>.
|
|
|
|
// While there is nothing preventing a standard keyboard from having both a
|
|
// "Shift Lock" key and a "Caps Lock" key, usually only one will be present. For
|
|
// testing, both must be present to test their functionality.
|
|
|
|
#if !defined(ASDF_KEYMAP_DEFS_H)
|
|
#define ASDF_KEYMAP_DEFS_H
|
|
|
|
#include "asdf.h"
|
|
#include "asdf_ascii.h"
|
|
#include "asdf_physical.h"
|
|
#include "asdf_virtual.h"
|
|
#include "asdf_modifiers.h"
|
|
|
|
#include "Keymaps/asdf_keymap_defs_ascii.h"
|
|
#include "Keymaps/asdf_keymap_defs_apple2.h"
|
|
|
|
#define ASDF_NUM_KEYMAPS (ASDF_ASCII_ALL_MAPS_COUNT + ASDF_APPLE2_ALL_MAPS_COUNT)
|
|
#define ASDF_KEYMAP_DEFS { ASDF_ASCII_ALL_MAPS , ASDF_APPLE2_ALL_MAPS }
|
|
#define ASDF_KEYMAP_DECLARATIONS ASDF_ASCII_MAP_DECLARATIONS ASDF_APPLE2_MAP_DECLARATIONS
|
|
|
|
#define ASDF_KEYMAP_INITIALIZERS { ASDF_ASCII_KEYMAP_INITIALIZER , ASDF_APPLE2_KEYMAP_INITIALIZER }
|
|
|
|
typedef asdf_keycode_t keycode_matrix_t[ASDF_NUM_ROWS][ASDF_NUM_COLS];
|
|
|
|
|
|
|
|
#endif /* !defined (ASDF_KEYMAP_DEFS_H) */
|
|
|
|
//-------|---------|---------+---------+---------+---------+---------+---------+
|
|
// Above line is 80 columns, and should display completely in the editor.
|