![]() ![]() written: for PB 6.00 beta 8 (in progress)ĬompilerIf Defined(Point, #PB_Structure) = 0 For informational purposes I set the window's title to show the current mouse position obtained from both the WindowMouseX(), WindowMouseY() and MouseX(), MouseY/() functions.Ĭode: Select all Program description: screen and windows mouse issues Since you can't seem to leave the screen area you can click the right mouse to release the mouse and the window's mouse pointer will be displayed in the center of the screen but any movement will cause it to be recaptured by the screen. Once in the screen you can move a mouse pointer around and drag some numbered squares around with the left mouse button pushed. You can move in but not out of the screen. I would consider this a bug but I am open to suggestions either way. All I can see in PureBasic are library functions for getting the position and not for setting the position for the window's mouse pointer. It wasn't necessary to do this in the past because the window's mouse pointer seemed to be updated even when it was captured but it now doesn't seem to be. The source of the frustration is that capturing the mouse alters the window's mouse position to either the screen center or the desktop center and I am unsure how to reposition the window mouse position when releasing the mouse. It would seem that the screen and the window both keep separate mouse positions and when the mouse is captured only the screen mouse position is updated and when the mouse is released only the windows mouse position is updated. The side effect of this is that the mouse now can never be released by its position because it is automatically recaptured (because its 'window' position in the center of the screen). What happens now is that when the mouse is captured the windows mouse position changes to center it on the screen. When the mouse pointer moved to the edges of the screen the mouse would be released from the screen and the windows mouse position would be used. ![]() The idea was this, when the windows mouse pointer was more than a few pixels 'inside' the screen the mouse would be captured and a mouse pointer displayed on the screen. My former processes for handling this now seem to fail. The issue relates strictly to positioning the mouse pointer and comes up when a transition is made in an out of a Windowed Screen. Hi I was reviewing older test code for sprites and noticed an issue with the mouse functions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |