mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 08:45:31 -05:00
Added button-up with mouse-wheel on framebuffer console
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user