Because they don't calculate from the window position but from 0,0 real screen position. At least this is what my tests show. mouse_dir3d, mouse_pos3d, they all depend on mouse_pos which is not added to the window_pos. Pardon me if I am mistaken.
Click and join the 3dgs irc community! Room: #3dgs
Re: mouse_pos functions not accurate in windowed mode
[Re: Joozey]
#325464 05/26/1019:0605/26/1019:06
Isn't this the difference between mouse_pos and mouse_cursor? One is absolute coordinates (screen) and the other being relative coordinates (engine window)?
After 4 years of working with the engine I still get confused on what the actual difference between them is?
Re: mouse_pos functions not accurate in windowed mode
[Re: DJBMASTER]
#325466 05/26/1019:4505/26/1019:45
All mouse coordinates are always relative to the upper left corner of the client area of the engine window, ranging from 0 to screen_size.x/y. This is no "inaccuracy".