#ifndef KEYBOARD_INPUT_H
#define KEYBOARD_INPUT_H

#include "tusb.h"

struct KeyEvent {
    char ascii;
    bool is_enter;
    bool is_backspace;
    bool is_printable;
};

/**
 * Parses a raw HID keyboard report and returns true if a new key press was detected.
 * The result is stored in the provided KeyEvent pointer.
 */
bool parse_keyboard_report(hid_keyboard_report_t const *report, KeyEvent* result);

#endif // KEYBOARD_INPUT_H
