<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: MultiInput class &#8211; multiple mice in your XNA game!</title> <atom:link href="http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/feed/" rel="self" type="application/rss+xml" /><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/</link> <description>Technology, Computer and Programming news</description> <lastBuildDate>Sat, 22 Oct 2011 16:38:28 -0600</lastBuildDate> <generator>http://wordpress.org/?v=2.8.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: multimolti</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-31245</link> <dc:creator>multimolti</dc:creator> <pubDate>Mon, 26 Sep 2011 17:04:47 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-31245</guid> <description>I&#039;m sorry, this project has been suspended.</description> <content:encoded><![CDATA[<p>I&#8217;m sorry, this project has been suspended.</p> ]]></content:encoded> </item> <item><title>By: Tybs</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-31167</link> <dc:creator>Tybs</dc:creator> <pubDate>Fri, 01 Jul 2011 16:36:51 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-31167</guid> <description>I hope this is still looked at...Currently, I am trying to make use of MultiInput.dll so I will have multiple mouse pointers available in my application. For some reason, however, I get the following error when running the code you have given:An unhandled exception of type &#039;System.OutOfMemoryException&#039; occurred in MultiInput.dllClear enough, but I don&#039;t have a clue on how to fix this. Is there still someone around who can help? :(Greetz,
Tybs</description> <content:encoded><![CDATA[<p>I hope this is still looked at&#8230;</p><p>Currently, I am trying to make use of MultiInput.dll so I will have multiple mouse pointers available in my application. For some reason, however, I get the following error when running the code you have given:</p><p>An unhandled exception of type &#8216;System.OutOfMemoryException&#8217; occurred in MultiInput.dll</p><p>Clear enough, but I don&#8217;t have a clue on how to fix this. Is there still someone around who can help? <img
src='http://www.multimolti.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>Greetz,<br
/> Tybs</p> ]]></content:encoded> </item> <item><title>By: Anton Lind</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-31085</link> <dc:creator>Anton Lind</dc:creator> <pubDate>Mon, 18 Apr 2011 18:00:50 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-31085</guid> <description>Hello!
Is any1 still active on this thread?
Im working on a game that requires 2 mice, but this dll wont seem to work for xna 4.0. Is there a newer ver or does any1 know a simple solution(like this one) for xna 4.0?
I seem to get some kind of null reference when i try to &quot;new&quot; the MultiInputController , and ive been trying to work my way around it but without result.</description> <content:encoded><![CDATA[<p>Hello!<br
/> Is any1 still active on this thread?<br
/> Im working on a game that requires 2 mice, but this dll wont seem to work for xna 4.0. Is there a newer ver or does any1 know a simple solution(like this one) for xna 4.0?<br
/> I seem to get some kind of null reference when i try to &#8220;new&#8221; the MultiInputController , and ive been trying to work my way around it but without result.</p> ]]></content:encoded> </item> <item><title>By: Christos</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-31028</link> <dc:creator>Christos</dc:creator> <pubDate>Fri, 18 Feb 2011 17:15:09 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-31028</guid> <description>Hi all and thanks for the interesting blogI want to handle 2 mouses in my laptop (it runs win7 64bit version)
and I use the following code (XNA 4).
.
.using MultiInput;
.
.
public class Game1 : Microsoft.Xna.Framework.Game
{
public static IntPtr hndl;
public static MultiInputController inputController;
.
.
.protected override void LoadContent()
{
spriteBatch = new SpriteBatch(GraphicsDevice);
font = Content.Load(&quot;InfoFont&quot;);
hndl = base.Window.Handle;
inputController = new MultiInputController(hndl);when the code reaches the point for new MultiInputController
it throws an exceptionSystem.ExecutionEngineException was unhandled
Message: An unhandled exception of type &#039;System.ExecutionEngineException&#039; occurred in Unknown Module.In some cases it throws a Out of Memory Exception.I would be grateful if you could help me.</description> <content:encoded><![CDATA[<p>Hi all and thanks for the interesting blog</p><p>I want to handle 2 mouses in my laptop (it runs win7 64bit version)<br
/> and I use the following code (XNA 4)</p><p>.<br
/> .<br
/> .using MultiInput;<br
/> .<br
/> .<br
/> public class Game1 : Microsoft.Xna.Framework.Game<br
/> {</p><p> public static IntPtr hndl;<br
/> public static MultiInputController inputController;<br
/> .<br
/> .<br
/> .</p><p> protected override void LoadContent()<br
/> {</p><p> spriteBatch = new SpriteBatch(GraphicsDevice);<br
/> font = Content.Load(&#8221;InfoFont&#8221;);<br
/> hndl = base.Window.Handle;</p><p> inputController = new MultiInputController(hndl);</p><p>when the code reaches the point for new MultiInputController<br
/> it throws an exception</p><p>System.ExecutionEngineException was unhandled<br
/> Message: An unhandled exception of type &#8216;System.ExecutionEngineException&#8217; occurred in Unknown Module.</p><p>In some cases it throws a Out of Memory Exception.</p><p>I would be grateful if you could help me.</p> ]]></content:encoded> </item> <item><title>By: Tommy</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-31008</link> <dc:creator>Tommy</dc:creator> <pubDate>Sun, 30 Jan 2011 16:58:26 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-31008</guid> <description>I put the Dispose function in UnloadContent(), and when I exit the game it still won&#039;t kill the process of my game so I must go into the taskmanager on My OS and end it myself. What should I do?</description> <content:encoded><![CDATA[<p>I put the Dispose function in UnloadContent(), and when I exit the game it still won&#8217;t kill the process of my game so I must go into the taskmanager on My OS and end it myself. What should I do?</p> ]]></content:encoded> </item> <item><title>By: Lennart Moltrecht (admin)</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-30599</link> <dc:creator>Lennart Moltrecht (admin)</dc:creator> <pubDate>Mon, 31 May 2010 21:04:19 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-30599</guid> <description>Thanks for the code! I guess my website erased the smaller/bigger than signs because they could be HTLM markers.</description> <content:encoded><![CDATA[<p>Thanks for the code! I guess my website erased the smaller/bigger than signs because they could be HTLM markers.</p> ]]></content:encoded> </item> <item><title>By: Caio Cesar Moreira</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-30598</link> <dc:creator>Caio Cesar Moreira</dc:creator> <pubDate>Mon, 31 May 2010 11:50:04 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-30598</guid> <description>I don&#039;t know why but when I&#039;ve pasted the code the if clause lost some information, here is how they should be:if (0 &lt; mouse.Buttons.Length)
...
if (1 &lt; mouse.Buttons.Length)
...
if (2 &lt; mouse.Buttons.Length)</description> <content:encoded><![CDATA[<p>I don&#8217;t know why but when I&#8217;ve pasted the code the if clause lost some information, here is how they should be:</p><p>if (0 &lt; mouse.Buttons.Length)<br
/> &#8230;<br
/> if (1 &lt; mouse.Buttons.Length)<br
/> &#8230;<br
/> if (2 &lt; mouse.Buttons.Length)</p> ]]></content:encoded> </item> <item><title>By: Caio Cesar Moreira</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-30597</link> <dc:creator>Caio Cesar Moreira</dc:creator> <pubDate>Mon, 31 May 2010 11:45:04 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-30597</guid> <description>The fixed version of the UpdateRawMouse for supporting the touch-pad or any other mouse which doesn&#039;t have 3 buttons is:public void UpdateRawMouse(IntPtr dHandle)
{
int hRawInput = dHandle.ToInt32();
int pcbSize = 0;
RAWINPUT rawInput = new RAWINPUT();
int num3 = RawInput.GetRawInputData(hRawInput, 0x10000003, IntPtr.Zero, ref pcbSize, Marshal.SizeOf(typeof(RAWINPUTHEADER)));
num3 = RawInput.GetRawInputData(hRawInput, 0x10000003, ref rawInput, ref pcbSize, Marshal.SizeOf(typeof(RAWINPUTHEADER)));
foreach (RawMouse mouse in this.Mice)
{
if (mouse.Handle.ToInt32() == rawInput.header.hDevice)
{
mouse.X += rawInput.mouse.lLastX;
mouse.Y += rawInput.mouse.lLastY;if (0  0)
{
mouse.Buttons[0] = true;
}
else
{
mouse.Buttons[0] = false;
}
}if (1  0)
{
mouse.Buttons[1] = true;
}
else
{
mouse.Buttons[1] = false;
}
}if (2  0)
{
mouse.Buttons[2] = true;
}
else
{
mouse.Buttons[2] = false;
}
}if ((rawInput.mouse.usButtonFlags &amp; 0x400) &gt; 0)
{
if (((short) rawInput.mouse.usButtonData) &gt; 0)
{
mouse.Z++;
}
if (((short) rawInput.mouse.usButtonData) &lt; 0)
{
mouse.Z--;
}
}
}
}
}Regards,
Caio Cesar Moreira</description> <content:encoded><![CDATA[<p>The fixed version of the UpdateRawMouse for supporting the touch-pad or any other mouse which doesn&#8217;t have 3 buttons is:</p><p> public void UpdateRawMouse(IntPtr dHandle)<br
/> {<br
/> int hRawInput = dHandle.ToInt32();<br
/> int pcbSize = 0;<br
/> RAWINPUT rawInput = new RAWINPUT();<br
/> int num3 = RawInput.GetRawInputData(hRawInput, 0&#215;10000003, IntPtr.Zero, ref pcbSize, Marshal.SizeOf(typeof(RAWINPUTHEADER)));<br
/> num3 = RawInput.GetRawInputData(hRawInput, 0&#215;10000003, ref rawInput, ref pcbSize, Marshal.SizeOf(typeof(RAWINPUTHEADER)));<br
/> foreach (RawMouse mouse in this.Mice)<br
/> {<br
/> if (mouse.Handle.ToInt32() == rawInput.header.hDevice)<br
/> {<br
/> mouse.X += rawInput.mouse.lLastX;<br
/> mouse.Y += rawInput.mouse.lLastY;</p><p> if (0  0)<br
/> {<br
/> mouse.Buttons[0] = true;<br
/> }<br
/> else<br
/> {<br
/> mouse.Buttons[0] = false;<br
/> }<br
/> }</p><p> if (1  0)<br
/> {<br
/> mouse.Buttons[1] = true;<br
/> }<br
/> else<br
/> {<br
/> mouse.Buttons[1] = false;<br
/> }<br
/> }</p><p> if (2  0)<br
/> {<br
/> mouse.Buttons[2] = true;<br
/> }<br
/> else<br
/> {<br
/> mouse.Buttons[2] = false;<br
/> }<br
/> }</p><p> if ((rawInput.mouse.usButtonFlags &amp; 0&#215;400) &gt; 0)<br
/> {<br
/> if (((short) rawInput.mouse.usButtonData) &gt; 0)<br
/> {<br
/> mouse.Z++;<br
/> }<br
/> if (((short) rawInput.mouse.usButtonData) &lt; 0)<br
/> {<br
/> mouse.Z&#8211;;<br
/> }<br
/> }<br
/> }<br
/> }<br
/> }</p><p>Regards,<br
/> Caio Cesar Moreira</p> ]]></content:encoded> </item> <item><title>By: Caio Cesar Moreira</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-30595</link> <dc:creator>Caio Cesar Moreira</dc:creator> <pubDate>Mon, 31 May 2010 11:06:35 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-30595</guid> <description>Hi Lennart,Thanks for your reply.
The crash is happening inside the DLL, however I can&#039;t see why the crash is happening except I see its source code.
Couldn&#039;t you release the source code of it or at least place a treatment in MultiInput.RawMouseInput.UpdateRawMouse(IntPtr dHandle)?Best regards,</description> <content:encoded><![CDATA[<p>Hi Lennart,</p><p>Thanks for your reply.<br
/> The crash is happening inside the DLL, however I can&#8217;t see why the crash is happening except I see its source code.<br
/> Couldn&#8217;t you release the source code of it or at least place a treatment in MultiInput.RawMouseInput.UpdateRawMouse(IntPtr dHandle)?</p><p>Best regards,</p> ]]></content:encoded> </item> <item><title>By: Lennart Moltrecht (admin)</title><link>http://www.multimolti.com/blog/2009/03/22/multiinput-class-multiple-mice-in-your-xna-game/comment-page-1/#comment-30578</link> <dc:creator>Lennart Moltrecht (admin)</dc:creator> <pubDate>Fri, 28 May 2010 23:36:12 +0000</pubDate> <guid
isPermaLink="false">http://www.multimolti.de/blog/?p=330#comment-30578</guid> <description>Hi!I heard of that issue before (see comments above), but I currently don&#039;t have any laptop capable of running XNA so I can&#039;t test it. Try to find the reason for yourself (probably the touchpad doesn&#039;t return proper X/Y coordinates and gives negative numbers or something like that), so an error will be caused.
If you find a solution it would be great if you could fix it!</description> <content:encoded><![CDATA[<p>Hi!</p><p>I heard of that issue before (see comments above), but I currently don&#8217;t have any laptop capable of running XNA so I can&#8217;t test it. Try to find the reason for yourself (probably the touchpad doesn&#8217;t return proper X/Y coordinates and gives negative numbers or something like that), so an error will be caused.<br
/> If you find a solution it would be great if you could fix it!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/29 queries in 1.117 seconds using disk
Content Delivery Network via static2.multimolti.com

Served from: www.multimolti.com @ 2012-02-08 21:31:06 -->
