1
0
tmk_keyboard/keyboard/hhkb/unimap_common.h

223 lines
4.5 KiB
C
Raw Normal View History

2016-06-30 04:31:05 +00:00
/*
Copyright 2016 Jun Wako <wakojun@gmail.com>
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/>.
*/
#ifndef UNIMAP_COMMON_H
#define UNIMAP_COMMON_H
#include <stdint.h>
#include <avr/pgmspace.h>
#include "unimap.h"
/* HHKB JP
* ,-----------------------------------------------------------.
* |` |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |JPY|BS |
* |-----------------------------------------------------------|
* |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |Enter|
* |------------------------------------------------------` |
* |Caps |A |S |D |F |G |H |J |K |L |; |' |# | |
* |-----------------------------------------------------------|
* |Shift |Z |X |C |V |B |N |M |, |. |/ |Ro |Up |Shi|
* |-----------------------------------------------------------|
* |Ctl||Esc|Gui|Alt|Mhn| |Hen|Kan|Alt|Ctl||Lef|Dow|Rig|
* `-----------------------------------------------------------'
* Esc = Grave(`)
* Control = Caps Lock
* Left Fn = Left Control
* Right Fn = Right Control
*/
// row:16 x col:8
const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = {
// 0
{
UNIMAP_NO,
UNIMAP_NO,
UNIMAP_GRAVE,
UNIMAP_TAB,
UNIMAP_LCTRL,
UNIMAP_LSHIFT,
UNIMAP_CAPSLOCK,
UNIMAP_NO,
},
// 1
{
UNIMAP_NO,
UNIMAP_NO,
UNIMAP_4,
UNIMAP_E,
UNIMAP_MHEN,
UNIMAP_C,
UNIMAP_D,
UNIMAP_NO,
},
// 2
{
UNIMAP_NO,
UNIMA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