mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
Added button-up with mouse-wheel on framebuffer console
This commit is contained in:
parent
2cd26c079c
commit
8cc99c7505
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user