Wrecked Games
May 17, 2012, 05:35:06 PM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
We're just that awesome.
Home
Help
Search
Members
Login
Register
Wrecked Games
>
Wreckedgames Libraries
>
OIS
>
mouse position when not active window
« previous
next »
Pages: [
1
]
Print
Author
Topic: mouse position when not active window (Read 156 times)
Coks
Newbie
Karma: +0/-0
Posts: 2
mouse position when not active window
«
on:
February 04, 2012, 11:15:58 PM »
Hello!
I get the event mousePressed. MouseState have position of the mouse but it is only updated when an event occurs mouseMoved. When the window is not active I pressed a mouse on it and I get the wrong position of the mouse (old position). I use non exclusive mode.
Do I understand?
p.s. Sorry for my bad English.
Logged
Coks
Newbie
Karma: +0/-0
Posts: 2
Re: mouse position when not active window
«
Reply #1 on:
February 06, 2012, 03:19:14 AM »
Is it possible to retrieve the mouse position at anytime? Then the problem will be solved.
Logged
pjcast
Administrator
Veteran
Karma: +1/-0
Posts: 2661
Re: mouse position when not active window
«
Reply #2 on:
February 09, 2012, 08:08:18 PM »
In multiwindow apps, only a focused window will get mouse updates. If you are running multiple windows, you cannot create an OIS instance for each.
Logged
Print
Pages: [
1
]
« previous
next »
Wrecked Games
>
Wreckedgames Libraries
>
OIS
>
mouse position when not active window