Reference for get_pointer_x
Get the x coordinate of the mouse pointer. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
get_pointer_x
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Get the current horizontal coordinate of the mouse pointer or, in the case of a touchscreen, the point of last touch input if available. Defaults to 0 if no mouse events have been seen.
Snippet
Get the current cursor x coordinate.
sketch.get_mouse().get_x()
Examples
Availability
Available for Sketch2DApp and Sketch2DWeb.