input - MonoGame/XNA Mouse.GetState() always returns 0,0 position -
i'm trying position of cursor calling mouse class , using getstate method return value 0,0. i've searched everywhere , code looks same on other examples. i've tried alternative ways of declare class same results.
public void update() { var ms = mouse.getstate(); cursorpos = new vector2(ms.x, ms.y); }
if using mono, it's possible mouse.getstate
method extended. on past versions there problems mouse.setstate
method, problem in mouse.getstate
... suggest take latest mono framework.
or can try access directly method.
var ms = microsoft.xna.framework.input.mouse.getstate(); var mp = new point(ms.x, ms.y);
Comments
Post a Comment