Skip to content

Commit 1763144

Browse files
Update UserInputService.yaml (#1026)
## Changes <!-- Please summarize your changes. --> changed Gui "Object"(?) inset the insets used to be 36 but now is 58 or something with the new topbar, link useful stuff i might have used the notation for `class` and `enum` wrong, please fix if its wrong <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> ## Checks By submitting your pull request for review, you agree to the following: - [x ] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [ x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [ x] To the best of my knowledge, all proposed changes are accurate. ---------
1 parent 9928bba commit 1763144

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/en-us/reference/engine/classes/UserInputService.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,8 +1176,9 @@ methods:
11761176
to the top left corner of the screen.
11771177
description: |
11781178
This function returns a `Datatype.Vector2` representing the current screen
1179-
location of the player's `Class.Mouse` in pixels relative to the top left
1180-
corner. This does not account for the `Class.GuiObject` inset.
1179+
location of the player's `Class.Mouse` in pixels relative to the top‑left
1180+
corner. This does not account for the `Enum.ScreenInsets`; to get the
1181+
top‑left and bottom‑right insets, call `Class.GuiService:GetGuiInset()`.
11811182
11821183
If the location of the mouse pointer is offscreen or the player's device
11831184
does not have a mouse, the returned value will be undetermined.

0 commit comments

Comments
 (0)