Mercurial > sdl-ios-xcode
changeset 132:2604a7be65af
Added button-up with mouse-wheel on framebuffer console
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 31 Jul 2001 06:08:11 +0000 |
parents | 5d08b230932e |
children | 5d4bafca35cd |
files | src/video/fbcon/SDL_fbevents.c src/video/ps2gs/SDL_gsevents.c |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbevents.c Tue Jul 31 05:39:36 2001 +0000 +++ b/src/video/fbcon/SDL_fbevents.c Tue Jul 31 06:08:11 2001 +0000 @@ -755,10 +755,12 @@ 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;
--- a/src/video/ps2gs/SDL_gsevents.c Tue Jul 31 05:39:36 2001 +0000 +++ b/src/video/ps2gs/SDL_gsevents.c Tue Jul 31 06:08:11 2001 +0000 @@ -712,10 +712,12 @@ 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;