diff options
author | tmk <nobody@nowhere> | 2014-06-19 16:13:35 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-07-30 14:07:43 +0900 |
commit | 4c8e0fd0bd1712421f957ec5e0ca16fc6bbb3856 (patch) | |
tree | 2141d2e168ad043ea18bcb3aee3f3a03dd2a2f1b /converter/ps2_usb/keymap_common.c | |
parent | 80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3 (diff) | |
download | qmk_firmware-4c8e0fd0bd1712421f957ec5e0ca16fc6bbb3856.tar.gz qmk_firmware-4c8e0fd0bd1712421f957ec5e0ca16fc6bbb3856.zip |
Port ps2_usb to mbed
Diffstat (limited to 'converter/ps2_usb/keymap_common.c')
-rw-r--r-- | converter/ps2_usb/keymap_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/converter/ps2_usb/keymap_common.c b/converter/ps2_usb/keymap_common.c index 241d2e33b1..e344fb4167 100644 --- a/converter/ps2_usb/keymap_common.c +++ b/converter/ps2_usb/keymap_common.c @@ -15,10 +15,11 @@ 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" +#include "progmem.h" /* translates key to keycode */ -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 pgm_read_byte(&keymaps[(layer)][(key.row)][(key.col)]); } |