VMUPro SDK v1.0.0
Application Development SDK for the VMUPro
Loading...
Searching...
No Matches
vmupro_buttons.h
Go to the documentation of this file.
1
15#pragma once
16#include <stdint.h>
17#include <stdbool.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27
34
40
47
54
61
67
73
79
85
86#ifdef __cplusplus
87}
88#endif
bool vmupro_btn_confirm_released()
Was the user-configurable confirm button (A or B) released since the last vmupro_btn_read()
bool vmupro_btn_pressed(vmupro_btn_t btn)
Check if a button is currently held but was not held last time vmupro_btn_read() was called.
bool vmupro_btn_dismiss_pressed()
Was the user-configurable dismiss button (A or B) pressed since the last vmupro_btn_read()
bool vmupro_btn_held(vmupro_btn_t btn)
Check if a button is currently held.
bool vmupro_btn_dismiss_released()
Was the user-configurable dismiss button (A or B) released since the last vmupro_btn_read()
void vmupro_btn_read()
Call every frame, or when a new dialogue opens to read the button inputs. Press & release actions are...
bool vmupro_btn_released(vmupro_btn_t btn)
Check if a button is currently not heldheld but was held last time vmupro_btn_read() was called.
bool vmupro_btn_anything_held()
Check if any button is currently held/pressed Useful between menus to wait untill the user has finish...
bool vmupro_btn_confirm_pressed()
Was the user-configurable confirm button (A or B) pressed since the last vmupro_btn_read()
vmupro_btn_t
Predefined button values.
@ DPad_Right
@ DPad_Down
@ Btn_Mode
@ Btn_Power
@ DPad_Up
@ Btn_Bottom
@ Btn_A
@ Btn_B
@ DPad_Left