VMU Pro LUA SDK 1.0.0
LUA SDK for VMU Pro Applications
Loading...
Searching...
No Matches
Functions | Variables
vmupro_input.lua File Reference

Functions

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright Copyright (c) 2025 8BitMods. All rights reserved. --- --- Input and button utilities for VMU Pro LUA applications. --- All input functions and const ants are available globally in the LUA environment. --- @brief Update button state(call once per frame) --- @usage vmupro_btn_read() -- Update button states --- @note Call this before checking button presses/holds to get current state --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_read() end --- @brief Check if a button was just pressed(one-shot) --- @param button number Button const ant(BTN_DPAD_UP
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if vmupro_btn_pressed (BTN_A) then vmupro_log(VMUPRO_LOG_INFO
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if vmupro_btn_pressed (BTN_DPAD_UP) then move_up() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_pressed(button) end --- @brief Check if a button is currently held down --- @param button number Button const ant(BTN_DPAD_UP
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if vmupro_btn_held (BTN_A) then continuous_action() end --- @usage if vmupro_btn_held(BTN_DPAD_LEFT) then move_left() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_held(button) end --- @brief Check if a button was just released --- @param button number Button const ant(BTN_DPAD_UP
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if vmupro_btn_released (BTN_A) then end_action() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_released(button) end --- @brief Check if any button is currently held --- @return boolean true if any button is held
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if vmupro_btn_anything_held () then show_controls() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_anything_held() end --- @brief Check if confirm button(A) was pressed --- @return boolean true if confirm button was pressed
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if false otherwise usage if vmupro_btn_confirm_pressed () then confirm_action() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_confirm_pressed() end --- @brief Check if confirm button(A) was released --- @return boolean true if confirm button was released
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if false otherwise usage if false otherwise usage if vmupro_btn_confirm_released () then end_confirm() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_confirm_released() end --- @brief Check if dismiss button(B) was pressed --- @return boolean true if dismiss button was pressed
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if false otherwise usage if false otherwise usage if false otherwise usage if vmupro_btn_dismiss_pressed () then cancel_action() end --- @note This is a stub definition for IDE support only. --- Actual implementation is provided by VMU Pro firmware at runtime. function vmupro_btn_dismiss_pressed() end --- @brief Check if dismiss button(B) was released --- @return boolean true if dismiss button was released
 

Variables

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright BTN_A
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just pressed
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if Input
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently held
 
file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just released
 

Function Documentation

◆ Copyright()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright Copyright ( ) const

◆ vmupro_btn_anything_held()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if vmupro_btn_anything_held ( )

◆ vmupro_btn_confirm_pressed()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if false otherwise usage if vmupro_btn_confirm_pressed ( )

◆ vmupro_btn_confirm_released()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if false otherwise usage if false otherwise usage if vmupro_btn_confirm_released ( )

◆ vmupro_btn_dismiss_pressed()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if false otherwise usage if false otherwise usage if false otherwise usage if false otherwise usage if vmupro_btn_dismiss_pressed ( )

◆ vmupro_btn_held()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if vmupro_btn_held ( BTN_A  ) const

◆ vmupro_btn_pressed() [1/2]

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if vmupro_btn_pressed ( BTN_A  )

◆ vmupro_btn_pressed() [2/2]

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if vmupro_btn_pressed ( BTN_DPAD_UP  ) const

◆ vmupro_btn_released()

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just false otherwise usage if vmupro_btn_released ( BTN_A  )

Variable Documentation

◆ BTN_A

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if BTN_A

◆ held

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently held

◆ Input

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if Input

◆ pressed

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just pressed

◆ released

file vmupro_input lua brief VMU Pro LUA SDK Input and Button Functions author version date copyright etc return boolean true if button was just false otherwise usage if A pressed end usage if etc return boolean true if button is currently false otherwise usage if etc return boolean true if button was just released