From 9b77d2cd86236c72e04226e38e2ba27f303a09da Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 31 Jul 2001 06:08:11 +0000 Subject: [PATCH] Added button-up with mouse-wheel on framebuffer console --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40133 --- src/video/fbcon/SDL_fbevents.c | 6 ++++-- src/video/ps2gs/SDL_gsevents.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c index 8b2b0607a..dd393d27f 100644 --- a/src/video/fbcon/SDL_fbevents.c +++ b/src/video/fbcon/SDL_fbevents.c @@ -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; diff --git a/src/video/ps2gs/SDL_gsevents.c b/src/video/ps2gs/SDL_gsevents.c index 748c15d73..35c73abc0 100644 --- a/src/video/ps2gs/SDL_gsevents.c +++ b/src/video/ps2gs/SDL_gsevents.c @@ -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;