summaryrefslogtreecommitdiff
path: root/mousekey.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-01-13 16:39:49 +0900
committertmk <nobody@nowhere>2011-01-13 16:39:49 +0900
commitc5b9f2b02b3057b95ebb06092e8fae3ed6108197 (patch)
tree9d59ce8b6e1fff01cb48f0f578e936dd48507d73 /mousekey.c
parent56e098d76e7d2a843a66f3a6e409f1d38fe7feac (diff)
change keycodes and define keymap macro for AEK.
ADD: keymap macro for Apple Extended Keyboard in adb/keymap.c FIX: keycodes for Keypad, Fn and Mousekey.
Diffstat (limited to 'mousekey.c')
-rw-r--r--mousekey.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/mousekey.c b/mousekey.c
index be454e13ea..f2f0de5064 100644
--- a/mousekey.c
+++ b/mousekey.c
@@ -30,19 +30,19 @@ static inline uint8_t move_unit(void)
void mousekey_decode(uint8_t code)
{
- if (code == MS_UP) mousekey_y -= move_unit();
- else if (code == MS_DOWN) mousekey_y += move_unit();
- else if (code == MS_LEFT) mousekey_x -= move_unit();
- else if (code == MS_RGHT) mousekey_x += move_unit();
- else if (code == MS_BTN1) mousekey_btn |= MOUSE_BTN1;
- else if (code == MS_BTN2) mousekey_btn |= MOUSE_BTN2;
- else if (code == MS_BTN3) mousekey_btn |= MOUSE_BTN3;
- else if (code == MS_BTN4) mousekey_btn |= MOUSE_BTN4;
- else if (code == MS_BTN5) mousekey_btn |= MOUSE_BTN5;
- else if (code == MS_WH_U) mousekey_v += 1;
- else if (code == MS_WH_D) mousekey_v -= 1;
- else if (code == MS_WH_L) mousekey_h -= 1;
- else if (code == MS_WH_R) mousekey_h += 1;
+ if (code == KB_MS_UP) mousekey_y -= move_unit();
+ else if (code == KB_MS_DOWN) mousekey_y += move_unit();
+ else if (code == KB_MS_LEFT) mousekey_x -= move_unit();
+ else if (code == KB_MS_RIGHT) mousekey_x += move_unit();
+ else if (code == KB_MS_BTN1) mousekey_btn |= MOUSE_BTN1;
+ else if (code == KB_MS_BTN2) mousekey_btn |= MOUSE_BTN2;
+ else if (code == KB_MS_BTN3) mousekey_btn |= MOUSE_BTN3;
+ else if (code == KB_MS_BTN4) mousekey_btn |= MOUSE_BTN4;
+ else if (code == KB_MS_BTN5) mousekey_btn |= MOUSE_BTN5;
+ else if (code == KB_MS_WH_UP) mousekey_v += 1;
+ else if (code == KB_MS_WH_DOWN) mousekey_v -= 1;
+ else if (code == KB_MS_WH_LEFT) mousekey_h -= 1;
+ else if (code == KB_MS_WH_RIGHT) mousekey_h += 1;
}
bool mousekey_changed(void)