comparison src/video/ps2gs/SDL_gsevents.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 f590dd383b5d
children e8157fcb3114
comparison
equal deleted inserted replaced
131:5d08b230932e 132:2604a7be65af
710 switch (mousebuf[i+3]&0x0F) { 710 switch (mousebuf[i+3]&0x0F) {
711 case 0x0E: /* DX = +1 */ 711 case 0x0E: /* DX = +1 */
712 case 0x02: /* DX = -1 */ 712 case 0x02: /* DX = -1 */
713 break; 713 break;
714 case 0x0F: /* DY = +1 (map button 4) */ 714 case 0x0F: /* DY = +1 (map button 4) */
715 button |= (1<<3); 715 FB_vgamousecallback(button | (1<<3),
716 1, 0, 0);
716 break; 717 break;
717 case 0x01: /* DY = -1 (map button 5) */ 718 case 0x01: /* DY = -1 (map button 5) */
718 button |= (1<<4); 719 FB_vgamousecallback(button | (1<<4),
720 1, 0, 0);
719 break; 721 break;
720 } 722 }
721 break; 723 break;
722 case MOUSE_MS: 724 case MOUSE_MS:
723 /* Microsoft protocol has 0x40 in high byte */ 725 /* Microsoft protocol has 0x40 in high byte */