Commit 9b77d2cd authored by Sam Lantinga's avatar Sam Lantinga

Added button-up with mouse-wheel on framebuffer console

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40133
parent 3f722efa
...@@ -755,10 +755,12 @@ static void handle_mouse(_THIS) ...@@ -755,10 +755,12 @@ static void handle_mouse(_THIS)
case 0x02: /* DX = -1 */ case 0x02: /* DX = -1 */
break; break;
case 0x0F: /* DY = +1 (map button 4) */ case 0x0F: /* DY = +1 (map button 4) */
button |= (1<<3); FB_vgamousecallback(button | (1<<3),
1, 0, 0);
break; break;
case 0x01: /* DY = -1 (map button 5) */ case 0x01: /* DY = -1 (map button 5) */
button |= (1<<4); FB_vgamousecallback(button | (1<<4),
1, 0, 0);
break; break;
} }
break; break;
......
...@@ -712,10 +712,12 @@ static void handle_mouse(_THIS) ...@@ -712,10 +712,12 @@ static void handle_mouse(_THIS)
case 0x02: /* DX = -1 */ case 0x02: /* DX = -1 */
break; break;
case 0x0F: /* DY = +1 (map button 4) */ case 0x0F: /* DY = +1 (map button 4) */
button |= (1<<3); FB_vgamousecallback(button | (1<<3),
1, 0, 0);
break; break;
case 0x01: /* DY = -1 (map button 5) */ case 0x01: /* DY = -1 (map button 5) */
button |= (1<<4); FB_vgamousecallback(button | (1<<4),
1, 0, 0);
break; break;
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment