Added button-up with mouse-wheel on framebuffer console

This commit is contained in:
Sam Lantinga 2001-07-31 06:08:11 +00:00
parent 2cd26c079c
commit 8cc99c7505
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;