device_mouse_raw_x not implemented

Reporter: briviere  |  Status: open  |  Last Modified: December 17, 2016, 12:05:37 AM

It appear that device_mouse_raw_x has not been implemented? Unless it is in a newer branch?

thanks

Brian

JoshDreamland  
I have never heard of that function. My guess is that Yo-yo renamed display_mouse_get_x().
faissaloo  

@JoshDreamland https://docs.yoyogames.com/source/dadiospice/002_reference/mouse,%20keyboard%20and%20other%20controls/device%20input/device_mouse_raw_x.html

This function returns raw x position of the device. What this means is that it returns the actual device definition of the x position that is being touched, not the GameMaker: Studio one, and as such will ignore things like view position and scaling.

JoshDreamland  

That description seems to match display_mouse_get_x() perfectly. The actual difference appears to be the extra int parameter, for multitouch support, I presume. Multitouch isn't terribly relevant to PC ENIGMA, so I'd suggest just using the display equivalent. If it still takes window coordinates into account, there's also window_mouse_get_y.
Please sign in to post comments, or you can view this issue on GitHub.