X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=macway%2Fkeymap.c;h=c80caa1be0adb0c3eb1996f68ff5f37e0686e49d;hb=6284b147c23aa32a9e65138b1eb8ee908ece4941;hp=b6b6d3c3f27360083f20e7500cd034ac3756e308;hpb=c5b9f2b02b3057b95ebb06092e8fae3ed6108197;p=max%2Ftmk_keyboard.git diff --git a/macway/keymap.c b/macway/keymap.c index b6b6d3c3..c80caa1b 100644 --- a/macway/keymap.c +++ b/macway/keymap.c @@ -1,15 +1,31 @@ +/* +Copyright 2011 Jun Wako + +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 . +*/ + /* * Keymap for Macway mod */ #include #include #include -#include "usb_keyboard.h" #include "usb_keycodes.h" #include "print.h" #include "debug.h" #include "util.h" -#include "keymap_skel.h" +#include "keymap.h" // Convert physical keyboard layout to matrix array. @@ -177,10 +193,3 @@ uint8_t keymap_fn_keycode(uint8_t fn_bits) { return pgm_read_byte(&fn_keycode[(biton(fn_bits))]); } - -// define a condition to enter special function mode -bool keymap_is_special_mode(uint8_t fn_bits) -{ - //return (usb_keyboard_mods == (BIT_LCTRL | BIT_LSHIFT | BIT_LALT | BIT_LGUI)); - return (usb_keyboard_mods == (BIT_RSHIFT)); -}