diff options
author | tmk <nobody@nowhere> | 2010-10-10 15:10:23 +0200 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-10-10 15:10:23 +0200 |
commit | c696c95c606367aa309ce7ce8c15fa3a270f12c2 (patch) | |
tree | e4ae2ce383d15f0a6e21ce3047f9f7a0679b9b4d /tmk.c | |
parent | 958875247cc7f5e3d4466b2cadaa827f4dda108c (diff) | |
download | qmk_firmware-c696c95c606367aa309ce7ce8c15fa3a270f12c2.tar.gz qmk_firmware-c696c95c606367aa309ce7ce8c15fa3a270f12c2.tar.xz |
change keymap for mouse keys.
Diffstat (limited to 'tmk.c')
-rw-r--r-- | tmk.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -69,6 +69,7 @@ int main(void) // Wait an extra second for the PC's operating system to load drivers // and do whatever it does to actually be ready for input // needs such long time in my PC. + /* wait for debug print. no need for normal use */ for (int i =0; i < 6; i++) { LED_CONFIG; LED_ON; @@ -146,10 +147,10 @@ int main(void) if (code == MS_BTN3) mouse_btn |= 1<<2; if (code == MS_BTN4) mouse_btn |= 1<<3; if (code == MS_BTN5) mouse_btn |= 1<<4; - if (code == MS_WH_UP) mouse_wheel -= 1; - if (code == MS_WH_DOWN) mouse_wheel += 1; - if (code == MS_WH_LEFT) mouse_hwheel -= 1; - if (code == MS_WH_RIGHT) mouse_hwheel += 1; + if (code == MS_WH_UP) mouse_wheel += 1; + if (code == MS_WH_DOWN) mouse_wheel -= 1; + if (code == MS_WH_LEFT) mouse_hwheel += 1; + if (code == MS_WH_RIGHT) mouse_hwheel -= 1; } else { // normal keys if (key_index < 6) |