ref: 22c28f1c0de3a76cac067309abfd77f8d508c2bb
dir: /src/ft2_keyboard.h/
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <SDL2/SDL.h>
typedef struct keyb_t
{
uint8_t keyRepeat, keyPressed;
bool ignoreCurrKeyUp, ignoreTextEditKey, numPadPlusPressed;
bool keyModifierDown, commandPressed, leftCommandPressed;
bool leftShiftPressed, leftCtrlPressed, ctrlPressed, leftAltPressed;
} keyb_t;
extern keyb_t keyb; // ft2_keyboard.c
int8_t scancodeKeyToNote(SDL_Scancode scancode);
void keyUpHandler(SDL_Scancode scancode, SDL_Keycode keycode);
void keyDownHandler(SDL_Scancode scancode, SDL_Keycode keycode, bool keyWasRepeated);
void readKeyModifiers(void);