<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Networking</title><link>http://forums.xna.com/forums/68.aspx</link><description>Microsoft.Xna.Framework.Net, TCP/IP, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: Coordinate system change at each run</title><link>http://forums.xna.com/forums/thread/193623.aspx</link><pubDate>Fri, 26 Jun 2009 09:02:45 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193623</guid><dc:creator>Cinosura</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193623.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=68&amp;PostID=193623</wfw:commentRss><description>Hello, I solved the problem&lt;br /&gt;
&lt;br /&gt;
just put:&lt;br /&gt;
&lt;br /&gt;
Mouse.WindowHandle = this.Window.Handle;&lt;br /&gt;
&lt;br /&gt;
at the beginning of Update cicle!&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Re: Coordinate system change at each run</title><link>http://forums.xna.com/forums/thread/193606.aspx</link><pubDate>Fri, 26 Jun 2009 07:45:06 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193606</guid><dc:creator>Cinosura</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193606.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=68&amp;PostID=193606</wfw:commentRss><description>Hi, thanks for reply!&lt;br /&gt;
I&amp;#39;m not using a winform, this problem happens into main window game. Each time I run the game, the origin of mouse coordinates system changes. For example, if I make the program write a string in mouse position it alwayes appear with a different offset related to cursor pointer, even if I don&amp;#39;t set any offset.&lt;br /&gt;
&lt;br /&gt;
I tried to use Mouse.WindowHandle but nothing changed!&lt;br /&gt;
&lt;br /&gt;
Ayway If I remove networking it works properly (but iI can&amp;#39;t because I need it!). Any other suggestion?&lt;br /&gt;</description></item><item><title>Re: Coordinate system change at each run</title><link>http://forums.xna.com/forums/thread/193349.aspx</link><pubDate>Thu, 25 Jun 2009 16:52:57 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193349</guid><dc:creator>dadoo Games</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193349.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=68&amp;PostID=193349</wfw:commentRss><description>I&amp;#39;m going to assume you are using XNA in a WinForm, but you haven&amp;#39;t given enough information to know for sure if that is true.&lt;br /&gt;
&lt;br /&gt;
If so, you need to set the &lt;a href="http://forums.xna.com/forums/p/4731/24599.aspx#24599"&gt;Mouse.WindowHandle&lt;/a&gt; property to your game window handle (maybe Game.Window.Handle, I can&amp;#39;t remember offhand). Also see this &lt;a href="http://forums.xna.com/forums/p/4731/24599.aspx#24599"&gt;thread&lt;/a&gt; for issues when you open and close dialogs.&lt;br /&gt;</description></item><item><title>Coordinate system change at each run</title><link>http://forums.xna.com/forums/thread/193321.aspx</link><pubDate>Thu, 25 Jun 2009 15:19:25 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:193321</guid><dc:creator>Cinosura</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/193321.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=68&amp;PostID=193321</wfw:commentRss><description>Hello everyone,&lt;br /&gt;
&lt;br /&gt;
I realized a 3d scene with networking support. I would like to detect collision amoung object and mouse using Ray Class. Each time I run the game the collision detection happened in different coordinates even if I pointed to the same point. Then I made the application draws mouse position and I discovered the it change everytime I launch the game. the 2d coordinates system doesn&amp;#39;t start always from the top-left vetex of the window. &lt;br /&gt;
&lt;br /&gt;
There&amp;#39;s the way to define the start point of the 2d reference system so that I can fixed it each time i launch the game?&lt;br /&gt;
&lt;br /&gt;
thanks anyone could help me.&lt;br /&gt;
&lt;br /&gt;
Bye&lt;br /&gt;</description></item></channel></rss>