Skip to content

Commit

Permalink
Added button-up with mouse-wheel on framebuffer console
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 31, 2001
1 parent e645b2f commit 3a330a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/video/fbcon/SDL_fbevents.c
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/video/ps2gs/SDL_gsevents.c
Expand Up @@ -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;
Expand Down

0 comments on commit 3a330a5

Please sign in to comment.