bn::keypad namespace
#include <bn_keypad.h>

Keypad related functions.

Enums

enum class key_type: uint16_t { A = 0x0001, B = 0x0002, SELECT = 0x0004, START = 0x0008, RIGHT = 0x0010, LEFT = 0x0020, UP = 0x0040, DOWN = 0x0080, R = 0x0100, L = 0x0200 }
Available key types.

Functions

auto held(key_type key) -> bool
Indicates if the given key is held or not.
auto pressed(key_type key) -> bool
Indicates if the given key has been pressed in the current frame or not.
auto released(key_type key) -> bool
Indicates if the given key has been released in the current frame or not.
auto a_held() -> bool
Indicates if the A key is held or not.
auto a_pressed() -> bool
Indicates if the A key has been pressed in the current frame or not.
auto a_released() -> bool
Indicates if the A key has been released in the current frame or not.
auto b_held() -> bool
Indicates if the B key is held or not.
auto b_pressed() -> bool
Indicates if the B key has been pressed in the current frame or not.
auto b_released() -> bool
Indicates if the B key has been released in the current frame or not.
auto select_held() -> bool
Indicates if the Select key is held or not.
auto select_pressed() -> bool
Indicates if the Select key has been pressed in the current frame or not.
auto select_released() -> bool
Indicates if the Select key has been released in the current frame or not.
auto start_held() -> bool
Indicates if the Start key is held or not.
auto start_pressed() -> bool
Indicates if the Start key has been pressed in the current frame or not.
auto start_released() -> bool
Indicates if the Start key has been released in the current frame or not.
auto right_held() -> bool
Indicates if the Right key is held or not.
auto right_pressed() -> bool
Indicates if the Right key has been pressed in the current frame or not.
auto right_released() -> bool
Indicates if the Right key has been released in the current frame or not.
auto left_held() -> bool
Indicates if the Left key is held or not.
auto left_pressed() -> bool
Indicates if the Left key has been pressed in the current frame or not.
auto left_released() -> bool
Indicates if the Left key has been released in the current frame or not.
auto up_held() -> bool
Indicates if the Up key is held or not.
auto up_pressed() -> bool
Indicates if the Up key has been pressed in the current frame or not.
auto up_released() -> bool
Indicates if the Up key has been released in the current frame or not.
auto down_held() -> bool
Indicates if the Down key is held or not.
auto down_pressed() -> bool
Indicates if the Down key has been pressed in the current frame or not.
auto down_released() -> bool
Indicates if the Down key has been released in the current frame or not.
auto r_held() -> bool
Indicates if the R key is held or not.
auto r_pressed() -> bool
Indicates if the R key has been pressed in the current frame or not.
auto r_released() -> bool
Indicates if the R key has been released in the current frame or not.
auto l_held() -> bool
Indicates if the L key is held or not.
auto l_pressed() -> bool
Indicates if the L key has been pressed in the current frame or not.
auto l_released() -> bool
Indicates if the L key has been released in the current frame or not.
auto any_held() -> bool
Indicates if any key is held or not.
auto any_pressed() -> bool
Indicates if any key has been pressed in the current frame or not.
auto any_released() -> bool
Indicates if any key has been released in the current frame or not.

Enum documentation

enum class bn::keypad::key_type: uint16_t

Available key types.

Enumerators
A

A key.

B

B key.

SELECT

Select key.

START

Start key.

RIGHT

Right key.

LEFT

Left key.

UP

Up key.

DOWN

Down key.

R

R key.

L

L key.