|
| 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 |
| |