FMX.Forms.TScreen.MousePos
Delphi
function MousePos: TPointF;
C++
System::Types::TPointF __fastcall MousePos(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TScreen |
Description
Returns a TPointF with the mouse (finger) screen coordinates.
MousePos returns the the mouse screen coordinates, if the platform supports the mouse integration.
If the platform supports the touchscreen (OSX, Android) MousePos returns the coordinates of the last finger-touch position on the touchscreen. You need to keep in mind that the sensitive area of the touchscreen can be larger than the shown image. Therefore, the returned coordinates can be negative or point outside of the screen.