Simone: a game of visual memory and speed
keyboards.c File Reference

Keyboard layouts and related functions. More...

#include "keyboards.h"

Macros

#define STANDARD_KEYBOARD_NUM_ROWS   4
 
#define STANDARD_KEYBOARD_NUM_COLS   4
 
#define STANDARD_NULL_KEY   '\0'
 

Variables

static const char standard_keyboard_layout [STANDARD_KEYBOARD_NUM_ROWS][STANDARD_KEYBOARD_NUM_COLS]
 Standard 4x4 keyboard layout with number and letters, hash and star keys. More...
 
const keyboard_t standard_keyboard
 Standard 4x4 keyboard layout with number and letters, hash and star keys. More...
 

Detailed Description

Keyboard layouts and related functions.

Author
Sistemas Digitales II
Date
2026-01-01

Macro Definition Documentation

◆ STANDARD_KEYBOARD_NUM_COLS

#define STANDARD_KEYBOARD_NUM_COLS   4

Number of columns in the standard keyboard matrix

◆ STANDARD_KEYBOARD_NUM_ROWS

#define STANDARD_KEYBOARD_NUM_ROWS   4

Number of rows in the standard keyboard matrix

◆ STANDARD_NULL_KEY

#define STANDARD_NULL_KEY   '\0'

Null character to represent no key pressed in the standard keyboard

Variable Documentation

◆ standard_keyboard

const keyboard_t standard_keyboard
Initial value:
= {
.null_key = STANDARD_NULL_KEY,
.keys = (const char *)standard_keyboard_layout}

Standard 4x4 keyboard layout with number and letters, hash and star keys.

◆ standard_keyboard_layout

const char standard_keyboard_layout[STANDARD_KEYBOARD_NUM_ROWS][STANDARD_KEYBOARD_NUM_COLS]
static
Initial value:
= {
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}}

Standard 4x4 keyboard layout with number and letters, hash and star keys.

standard_keyboard_layout
static const char standard_keyboard_layout[STANDARD_KEYBOARD_NUM_ROWS][STANDARD_KEYBOARD_NUM_COLS]
Standard 4x4 keyboard layout with number and letters, hash and star keys.
Definition: keyboards.c:22
STANDARD_KEYBOARD_NUM_COLS
#define STANDARD_KEYBOARD_NUM_COLS
Definition: keyboards.c:15
STANDARD_KEYBOARD_NUM_ROWS
#define STANDARD_KEYBOARD_NUM_ROWS
Definition: keyboards.c:14
STANDARD_NULL_KEY
#define STANDARD_NULL_KEY
Definition: keyboards.c:16