Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Copyright 2012,2013 Jun Wako <[email protected]>
- 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(ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,BRK, \
- GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC,HOME,PGUP,\
- TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS,END, PGDN,\
- CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, INS, \
- LSFT, Z, X, C, V, B, N, M, COMM,DOT, SLSH,RSFT,DEL, UP, \
- LCTL, LGUI,LALT, SPC, RALT,RGUI,APP, RCTL,LEFT,DOWN,RGHT),
- };
- 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)] };
- }
Advertisement
Add Comment
Please, Sign In to add comment