<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head><style type=3D"text/css"><!--
body {background:#ffffff;font-family:Verdana,Helvetica,Arial,sans-serif;}
h3 {margin:15px 0;padding:0;line-height:0;}
#msg {margin: 0 0 2em 0;}
#msg dl, #msg ul, #msg pre {padding:1em;border:1px dashed black;margin: 1=
0px 0 30px 0;}
#msg dl {background:#ccccff;}
#msg pre {background:#ffffcc;}
#msg ul {background:#cc99ff;list-style:none;}
#msg dt {font-weight:bold;float:left;width: 6em;}
#msg dt:after { content:':';}
#patch h4 {padding: 0 10px;line-height:1.5em;margin:0;background:#ccffff;=
border-bottom:1px solid black;margin:0 0 10px 0;}
#patch .propset h4, #patch .binary h4 {margin: 0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {background:#eeeeee;padding: 0 0 10px 0;}
#patch .propset .diff, #patch .binary .diff {padding: 10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patc=
h .binary {border:1px solid black;margin:10px 0;}
#patch .add {background:#ddffdd;}
#patch .rem {background:#ffdddd;}
#patch .lines, .info {color:#888888;background:#ffffff;}
--></style>
<title>[310] kos/kernel/arch/dreamcast/hardware/maple/mouse.c: Fix bitmas=
k for mouse buttons so 3rd button is usable (thanks to Fragger)</title>
</head>
<body>
<div id=3D"msg">
<dl>
<dt>Revision</dt> <dd>310</dd>
<dt>Author</dt> <dd>sam.steele</dd>
<dt>Date</dt> <dd>2006-04-06 16:28:37 -0700 (Thu, 06 Apr 2006)</dd>
</dl>
<h3>Log Message</h3>
<pre>Fix bitmask for mouse buttons so 3rd button is usable (thanks to Fra=
gger)</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href=3D"#koskernelarchdreamcasthardwaremaplemousec">kos/kernel/arc=
h/dreamcast/hardware/maple/mouse.c</a></li>
</ul>
</div>
<div id=3D"patch">
<h3>Diff</h3>
<a id=3D"koskernelarchdreamcasthardwaremaplemousec"></a>
<div class=3D"modfile"><h4>Modified: kos/kernel/arch/dreamcast/hardware/m=
aple/mouse.c (309 =3D> 310)</h4>
<pre class=3D"diff">
<span class=3D"info">--- kos/kernel/arch/dreamcast/hardware/maple/mouse.c=
2006-03-27 00:22:02 UTC (rev 309)
+++ kos/kernel/arch/dreamcast/hardware/maple/mouse.c 2006-04-06 23:28:37 =
UTC (rev 310)
</span><span class=3D"lines">@@ -36,7 +36,7 @@
</span><span class=3D"cx">=20
/* Fill the "nice" struct from the raw data */
cooked =3D (mouse_state_t *)(frm->dev->status);
</span><span class=3D"rem">- cooked->buttons =3D (~raw->buttons) &=
amp; 6;
</span><span class=3D"add">+ cooked->buttons =3D (~raw->buttons) &=
amp; 14;
</span><span class=3D"cx"> cooked->dx =3D raw->dx - MOUSE_DELTA_C=
ENTER;
cooked->dy =3D raw->dy - MOUSE_DELTA_CENTER;
cooked->dz =3D raw->dz - MOUSE_DELTA_CENTER;
</span>
</pre>
</div>
</div>
</body>
</html>
|