Added button-up with mouse-wheel on framebuffer console
authorSam Lantinga <slouken@libsdl.org>
Tue, 31 Jul 2001 06:08:11 +0000
changeset 132 2604a7be65af
parent 131 5d08b230932e
child 133 5d4bafca35cd
Added button-up with mouse-wheel on framebuffer console
src/video/fbcon/SDL_fbevents.c
src/video/ps2gs/SDL_gsevents.c
--- 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;