Joystick event.

This commit is contained in:
jussi
2023-11-18 17:11:36 +02:00
parent 5c8324d25f
commit d19864947b
8 changed files with 85 additions and 4 deletions

26
API.md
View File

@@ -49,7 +49,7 @@ Some objects allocate memory that needs to be freed when object is no longer nee
Arguments are stored in 'RL.arg' array.
## Types
## Structures
Raylib structs in Lua
@@ -333,6 +333,12 @@ Content of event table received by RL.event.
---
> { type RL.EVENT_JOYSTICK, int jid, int event }
.
---
## Globals - ConfigFlags
> FLAG_VSYNC_HINT = 64
@@ -3391,6 +3397,18 @@ The key was held down until it repeated
---
> GLFW_CONNECTED = 262145
Joystick connected
---
> GLFW_DISCONNECTED = 262146
Joystick disconnected
---
## Globals - CBuffer
> BUFFER_UNSIGNED_CHAR = 0
@@ -3511,6 +3529,12 @@ GLFW event cursor enter/leave
---
> EVENT_JOYSTICK = 11
GLFW event joystick
---
## Core - Window-related functions