Update the lua docs for the cursor hide and show methods
This commit is contained in:
parent
e33eb5c2d9
commit
89b6fa9144
1 changed files with 8 additions and 0 deletions
|
@ -70,6 +70,10 @@ A reference to the cursor object.
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
|
|
||||||
|
#### cursor:hide()
|
||||||
|
|
||||||
|
Hides the cursor.
|
||||||
|
|
||||||
#### cursor:on(event, callback)
|
#### cursor:on(event, callback)
|
||||||
|
|
||||||
Used to register event listeners.
|
Used to register event listeners.
|
||||||
|
@ -79,6 +83,10 @@ Used to register event listeners.
|
||||||
Get the current position of the cursor.
|
Get the current position of the cursor.
|
||||||
Returns two parameters: `x` and `y`.
|
Returns two parameters: `x` and `y`.
|
||||||
|
|
||||||
|
### cursor:show()
|
||||||
|
|
||||||
|
Shows the cursor.
|
||||||
|
|
||||||
#### cursor:view_at_pos()
|
#### cursor:view_at_pos()
|
||||||
|
|
||||||
Returns the view at the cursor position, or `nil` if there is none.
|
Returns the view at the cursor position, or `nil` if there is none.
|
||||||
|
|
Loading…
Add table
Reference in a new issue