]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - common/keymap.c
fixes for bluetooth without usb
[qmk_firmware.git] / common / keymap.c
index bfb8ffac1a593b1cd06a6364db4ce3c2f151df31..7b77972261f7ba09f2523b0d4a97ce209f75284f 100644 (file)
@@ -14,7 +14,6 @@ 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 <avr/pgmspace.h>
 #include "keymap.h"
 #include "report.h"
 #include "keycode.h"
@@ -28,7 +27,8 @@ static action_t keycode_to_action(uint8_t keycode);
 
 
 /* converts key to action */
-action_t action_for_key(uint8_t layer, key_t key)
+__attribute__ ((weak))
+action_t action_for_key(uint8_t layer, keypos_t key)
 {
     uint8_t keycode = keymap_key_to_keycode(layer, key);
     switch (keycode) {
@@ -118,8 +118,6 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt)
 {
 }
 
-
-
 /* translates keycode to action */
 static action_t keycode_to_action(uint8_t keycode)
 {
@@ -156,7 +154,7 @@ static action_t keycode_to_action(uint8_t keycode)
  *      Consider using new keymap API instead.
  */
 __attribute__ ((weak))
-uint8_t keymap_key_to_keycode(uint8_t layer, key_t key)
+uint8_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
 {
     return keymap_get_keycode(layer, key.row, key.col);
 }