Added button-up with mouse-wheel on framebuffer console

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40133
This commit is contained in:
Sam Lantinga 2001-07-31 06:08:11 +00:00
parent 3f722efa22
commit 9b77d2cd86
2 changed files with 8 additions and 4 deletions

View file

@ -755,10 +755,12 @@ static void handle_mouse(_THIS)
case 0x02: /* DX = -1 */
break;
case 0x0F: /* DY = +1 (map button 4) */
button |= (1<<3);
FB_vgamousecallback(button | (1<<3),
1, 0, 0);
break;
case 0x01: /* DY = -1 (map button 5) */
button |= (1<<4);
FB_vgamousecallback(button | (1<<4),
1, 0, 0);
break;
}
break;

View file

@ -712,10 +712,12 @@ static void handle_mouse(_THIS)
case 0x02: /* DX = -1 */
break;
case 0x0F: /* DY = +1 (map button 4) */
button |= (1<<3);
FB_vgamousecallback(button | (1<<3),
1, 0, 0);
break;
case 0x01: /* DY = -1 (map button 5) */
button |= (1<<4);
FB_vgamousecallback(button | (1<<4),
1, 0, 0);
break;
}
break;