mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
Merge branch 'main' into animation
This commit is contained in:
commit
856f678315
14 changed files with 125 additions and 9 deletions
|
|
@ -172,7 +172,9 @@ app.start_background_instance(
|
|||
-- script file
|
||||
app_script: string,
|
||||
-- log file
|
||||
output_file: string | nil
|
||||
output_file: string,
|
||||
-- project parameters (can be read with vc.get_project_arg(name))
|
||||
project_args: table<string, string> | nil
|
||||
) -> int
|
||||
|
||||
-- Checks if the engine sub-instance is alive.
|
||||
|
|
|
|||
|
|
@ -63,6 +63,13 @@ input.get_mouse_delta() --> {int, int}
|
|||
|
||||
Returns cursor movement delta.
|
||||
|
||||
```lua
|
||||
input.get_mouse_scroll() --> int
|
||||
```
|
||||
|
||||
Returns the vertical mouse wheel offset accumulated during the current frame.
|
||||
A positive value indicates scrolling up; a negative value indicates scrolling down.
|
||||
|
||||
```lua
|
||||
input.get_bindings() --> strings array
|
||||
```
|
||||
|
|
|
|||
|
|
@ -92,6 +92,21 @@ socket:recv_async(
|
|||
[optional] usetable: bool=false
|
||||
) -> nil|table|Bytearray
|
||||
|
||||
-- `peek` and `peek_async` are analogous to the `recv` and `recv_async` methods
|
||||
-- with the exception that `peek` and `peek_async` do not advance the socket buffer position
|
||||
-- This means they do not remove bytes from the socket, so the bytes can be received after
|
||||
socket:peek(
|
||||
length: int,
|
||||
[optional] usetable: boolean=false
|
||||
) -> nil|table|Bytearray
|
||||
|
||||
socket:peek_async(
|
||||
length: int,
|
||||
[optional] usetable: boolean=false
|
||||
) -> nil|table|Bytearray
|
||||
|
||||
Translated with DeepL.com (free version)
|
||||
|
||||
-- Closes the connection
|
||||
socket:close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue