Sickes
26-01-2008 17:21:52
I have a problem with the input.
The abs position of the mouse is between 0 and 50.
When the mouse position is greater than 50 it don't change his position value and stop in 50.
How can i solve it?
BLiTZWiNG
26-01-2008 23:15:36
solved.
Was it a problem with your own system, if not, would you mind sharing a little detail in case anyone else hits this problem?
Sickes
27-01-2008 09:46:03
the problem was that MOIS set the width and height of the mouseState with 50x50 pixels.
I had to set in my code this variables with the value of the window heigth and width.
code:
LogManager.Singleton.LogMessage("*** Initializing MOIS ***");
MOIS.ParamList pl = new MOIS.ParamList();
IntPtr windowHnd;
window.GetCustomAttribute("WINDOW",out windowHnd);
pl.Insert("WINDOW",windowHnd.ToString());
pl.Insert("w32_mouse", "DISCL_FOREGROUND");
pl.Insert("w32_mouse", "DISCL_NONEXCLUSIVE");
inputMoisManager = MOIS.InputManager.CreateInputSystem(pl);
keybMoisDevice = (MOIS.Keyboard)inputMoisManager.CreateInputObject(MOIS.Type.OISKeyboard, USEBUFFEREDINPUT);
mouseMoisDevice = (MOIS.Mouse)inputMoisManager.CreateInputObject(MOIS.Type.OISMouse, USEBUFFEREDINPUT);
MOIS.MouseState_NativePtr state = mouseMoisDevice.MouseState;
state.width = (int)window.Width;
state.height = (int)window.Height;