1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
y5nw 2025-09-29 13:34:41 +02:00 committed by GitHub
commit e5fd709dc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 411 additions and 179 deletions

View file

@ -86,6 +86,17 @@ enum EEVENT_TYPE
};
//! Enumeration for "user" event types.
enum UserEventType: s32
{
//! In-game touch buttons.
/** This event is currently only fired by the in-game touch controller.
UserData1: The GameKeyType of the button.
UserData2: Whether the button is pressed or released.
*/
USER_EVENT_GAME_KEY = 1
};
//! Enumeration for all mouse input events
enum EMOUSE_INPUT_EVENT
{
@ -510,6 +521,9 @@ struct SEvent
//! Any kind of user event.
struct SUserEvent
{
//! Event code
s32 code;
//! Some user specified data as int
size_t UserData1;