From d19864947b6e8ea1049a56ca3d965691c51b4108 Mon Sep 17 00:00:00 2001 From: jussi Date: Sat, 18 Nov 2023 17:11:36 +0200 Subject: Joystick event. --- API.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index 8f823d9..ba42bdd 100644 --- a/API.md +++ b/API.md @@ -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 -- cgit v1.2.3