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
20
extern
"C"
{
21
#endif
22
26
typedef
enum
{
DPad_Up
,
DPad_Down
,
DPad_Right
,
DPad_Left
,
Btn_Power
,
Btn_Mode
,
Btn_A
,
Btn_B
,
Btn_Bottom
}
vmupro_btn_t
;
27
33
void
vmupro_btn_read
();
34
39
bool
vmupro_btn_held
(
vmupro_btn_t
btn);
40
46
bool
vmupro_btn_pressed
(
vmupro_btn_t
btn);
47
53
bool
vmupro_btn_released
(
vmupro_btn_t
btn);
54
60
bool
vmupro_btn_anything_held
();
61
66
bool
vmupro_btn_confirm_pressed
();
67
72
bool
vmupro_btn_confirm_released
();
73
78
bool
vmupro_btn_dismiss_pressed
();
79
84
bool
vmupro_btn_dismiss_released
();
85
86
#ifdef __cplusplus
87
}
88
#endif
vmupro_btn_confirm_released
bool vmupro_btn_confirm_released()
Was the user-configurable confirm button (A or B) released since the last vmupro_btn_read()
vmupro_btn_pressed
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.
vmupro_btn_dismiss_pressed
bool vmupro_btn_dismiss_pressed()
Was the user-configurable dismiss button (A or B) pressed since the last vmupro_btn_read()
vmupro_btn_held
bool vmupro_btn_held(vmupro_btn_t btn)
Check if a button is currently held.
vmupro_btn_dismiss_released
bool vmupro_btn_dismiss_released()
Was the user-configurable dismiss button (A or B) released since the last vmupro_btn_read()
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...
vmupro_btn_released
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.
vmupro_btn_anything_held
bool vmupro_btn_anything_held()
Check if any button is currently held/pressed Useful between menus to wait untill the user has finish...
vmupro_btn_confirm_pressed
bool vmupro_btn_confirm_pressed()
Was the user-configurable confirm button (A or B) pressed since the last vmupro_btn_read()
vmupro_btn_t
vmupro_btn_t
Predefined button values.
Definition
vmupro_buttons.h:26
DPad_Right
@ DPad_Right
Definition
vmupro_buttons.h:26
DPad_Down
@ DPad_Down
Definition
vmupro_buttons.h:26
Btn_Mode
@ Btn_Mode
Definition
vmupro_buttons.h:26
Btn_Power
@ Btn_Power
Definition
vmupro_buttons.h:26
DPad_Up
@ DPad_Up
Definition
vmupro_buttons.h:26
Btn_Bottom
@ Btn_Bottom
Definition
vmupro_buttons.h:26
Btn_A
@ Btn_A
Definition
vmupro_buttons.h:26
Btn_B
@ Btn_B
Definition
vmupro_buttons.h:26
DPad_Left
@ DPad_Left
Definition
vmupro_buttons.h:26
sdk
include
vmupro_buttons.h
Generated by
1.9.8