summaryrefslogtreecommitdiff
path: root/converter/ps2_usb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-19 15:33:02 +0900
committertmk <nobody@nowhere>2012-10-19 15:33:02 +0900
commit8a81986191ba797a8501cd7b3f8a0e9b58b5b30e (patch)
treef5e0d4bde0727fb54c71511f41a601db85fc509c /converter/ps2_usb
parent81141ad0eba1a9db9abd0f7903d8077c28e76b40 (diff)
Fix keymap to adjust new keyboard.c.
Diffstat (limited to 'converter/ps2_usb')
-rw-r--r--converter/ps2_usb/keymap.c8
-rw-r--r--converter/ps2_usb/keymap_jis.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/converter/ps2_usb/keymap.c b/converter/ps2_usb/keymap.c
index df3a36b7fb..c97783fa53 100644
--- a/converter/ps2_usb/keymap.c
+++ b/converter/ps2_usb/keymap.c
@@ -368,12 +368,12 @@ uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col)
return pgm_read_byte(&keymaps[(layer)][(row)][(col)]);
}
-uint8_t keymap_fn_layer(uint8_t fn_bits)
+uint8_t keymap_fn_layer(uint8_t index)
{
- return pgm_read_byte(&fn_layer[biton(fn_bits)]);
+ return pgm_read_byte(&fn_layer[index]);
}
-uint8_t keymap_fn_keycode(uint8_t fn_bits)
+uint8_t keymap_fn_keycode(uint8_t index)
{
- return pgm_read_byte(&fn_keycode[(biton(fn_bits))]);
+ return pgm_read_byte(&fn_keycode[index]);
}
diff --git a/converter/ps2_usb/keymap_jis.c b/converter/ps2_usb/keymap_jis.c
index fcf8a2abb4..866ccd9174 100644
--- a/converter/ps2_usb/keymap_jis.c
+++ b/converter/ps2_usb/keymap_jis.c
@@ -286,12 +286,12 @@ uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col)
return pgm_read_byte(&keymaps[(layer)][(row)][(col)]);
}
-uint8_t keymap_fn_layer(uint8_t fn_bits)
+uint8_t keymap_fn_layer(uint8_t index)
{
- return pgm_read_byte(&fn_layer[biton(fn_bits)]);
+ return pgm_read_byte(&fn_layer[index]);
}
-uint8_t keymap_fn_keycode(uint8_t fn_bits)
+uint8_t keymap_fn_keycode(uint8_t index)
{
- return pgm_read_byte(&fn_keycode[(biton(fn_bits))]);
+ return pgm_read_byte(&fn_keycode[index]);
}