comparison src/video/fbcon/SDL_fbevents.c @ 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 5a9c36a45db1
children e8157fcb3114
comparison
equal deleted inserted replaced
131:5d08b230932e 132:2604a7be65af
753 switch (mousebuf[i+3]&0x0F) { 753 switch (mousebuf[i+3]&0x0F) {
754 case 0x0E: /* DX = +1 */ 754 case 0x0E: /* DX = +1 */
755 case 0x02: /* DX = -1 */ 755 case 0x02: /* DX = -1 */
756 break; 756 break;
757 case 0x0F: /* DY = +1 (map button 4) */ 757 case 0x0F: /* DY = +1 (map button 4) */
758 button |= (1<<3); 758 FB_vgamousecallback(button | (1<<3),
759 1, 0, 0);
759 break; 760 break;
760 case 0x01: /* DY = -1 (map button 5) */ 761 case 0x01: /* DY = -1 (map button 5) */
761 button |= (1<<4); 762 FB_vgamousecallback(button | (1<<4),
763 1, 0, 0);
762 break; 764 break;
763 } 765 }
764 break; 766 break;
765 case MOUSE_MS: 767 case MOUSE_MS:
766 /* Microsoft protocol has 0x40 in high byte */ 768 /* Microsoft protocol has 0x40 in high byte */