Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Copyright 2012,2013 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/>.
- */
- #include "keymap_common.h"
- const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /* 0: qwerty */
- KEYMAP(RGHT,TRNS,TRNS, PGDN,PGUP,PAUSE, \
- DOWN, UP,TRNS,END,HOME,SLCK, \
- LEFT,DEL, INS,BSLS, BSPC, PSCR, \
- RCTL,RSFT,ENT,RBRC,EQL, F12, \
- APP, SLSH,QUOT, LBRC, MINS, F11, \
- RGUI,DOT, SCLN, P,0, F10, \
- RALT, COMM, L, O,9, F9, \
- TRNS, M, K, I,8, F8, \
- TRNS, N, J, U,7, F7, \
- SPC, B, H, Y,6, F6, \
- TRNS, V, G, T,5, F5, \
- TRNS, C, F, R,4, F4, \
- LALT, X, D, E,3, F3, \
- LGUI, Z, S, W,2, F2, \
- TRNS,TRNS,A, Q,1, F1, \
- LCTL, LSFT, CAPS, TAB, GRV,ESC
- ),
- };
- const uint16_t PROGMEM fn_actions[] = {};
- uint8_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
- {
- return keymaps[(layer)][(key.row)][(key.col)];
- }
- /* translates Fn keycode to action */
- action_t keymap_fn_to_action(uint8_t keycode)
- {
- return (action_t){ .code = fn_actions[FN_INDEX(keycode)] };
- }
Add Comment
Please, Sign In to add comment