Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 03:33:57 am
Xith3D CommunityGeneral CategoryNews (Moderators: Marvin Fröhlich, 'n ddrylliog)Fixed issue with mouse jumping occasionally from setMouseExclusive
Pages: [1]
Print
Author Topic: Fixed issue with mouse jumping occasionally from setMouseExclusive  (Read 1001 times)
AotFSteven
developers
Enjoying the stay
***
Offline Offline

Posts: 63


View Profile
« on: 04. April 2008, 02:47:37 am »

There was an issue that I noticed when calling setKeyboardEnabled() for the FirstPersonInputHandler.  If I had the mouse movement disabled when I would suspend and unsuspend the keyboard the mouse would jump to a different location.  What was happening was that suspending and unsuspending the keyboard was triggering setMouseExclusive() in InputManagerImpl.  When this happens regardless of whether or not the MouseDevice's exclusive property is already set to what it is trying to set it to (Ex: Setting the MouseDevice as not exclusive even when it wasn't exclusive) setExclusive() was being called on the AWTMouse.  When this happens and the MouseDevice is being set to be not exclusive and it is already set as not exclusive, the AWTMouse from HIAL would think that the mouse was just losing exclusiveness so it would set the mouse position to the last known coordinates.  These coordinates are outdated and would cause the mouse to jump to another location.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 04. April 2008, 09:59:24 am »

Thanks for the fix.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic