c# - XNA Mouse position is off -


i'm working on miniature golf game in xna, had in game.cs (main), want more object-oriented, made separate class of stuff.

when had in game.cs, working fine, doesn't.

what happening this:

when cursor @ top left corner of game window, it's x=200, y=50. it's supposed x=0, y=0. when 0, 0 position, it's way outside game window.

does know causing this?

how possible? cursor position is mouse position. draw cursor there.

unless talking windows cursor. in case, yes, input data in xna not match windows cursor movement. apply modifiers acceleration, etc. have interprete input data yourself. in other words, draw own cursor.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -