VR-Engage  2.2
Loading...
Searching...
No Matches
joystickController.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file joystickController.h
7//! \brief Defines Lua bindings for joystick controller functionality
8//!
9//! This file contains the function for registering joystick controller functionality
10//! with Lua. It allows Lua scripts to access and manipulate joystick input devices,
11//! enabling scripts to handle user input from physical controllers in the VREngage system.
12
13#pragma once
14
16
17struct lua_State;
18
19namespace makVre
20{
21//! \brief Registers joystick controller functions with a Lua state
22//! \param L Pointer to the Lua state to register with
23//! \return Number of values pushed onto the Lua stack
24//!
25//! This function registers joystick controller functionality with the specified
26//! Lua state. It creates a JoystickController table in Lua with functions for
27//! accessing and manipulating joystick input devices, allowing scripts to respond
28//! to button presses, axis movements, and other controller events.
30} // namespace makVre
Defines export macros for the vreLuaBindings library.
#define VRELUABINDING_DLL
Export/import macro for non-Windows platforms.
Definition export.h:37
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
int VRELUABINDING_DLL luaopen_JoystickController(lua_State *L)
Registers joystick controller functions with a Lua state.