1
0
Fork 0

add horizontal mouse wheel

This commit is contained in:
tmk 2010-10-13 22:45:22 +09:00
parent 34a90769c9
commit 82637ded27
4 changed files with 75 additions and 177 deletions

4
tmk.c
View file

@ -149,8 +149,8 @@ int main(void)
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_LEFT) mouse_hwheel -= 1;
if (code == MS_WH_RIGHT) mouse_hwheel += 1;
} else {
// normal keys
if (key_index < 6)