<commit_before>#include "fxcg_syscalls.h"

int PRGM_GetKey() {
    unsigned char buffer[12];
    PRGM_GetKey_OS( buffer );
    return (( buffer[1] - 1) | ( buffer[2]  >> 4 ));
}<commit_msg>Fixed PRGM_GetKey on keyboard.c with the one from AHelper. This explains why my Utilities add-in wouldn't detect any key when this libfxcg was used.<commit_after>#include "fxcg_syscalls.h"

int PRGM_GetKey() {
    unsigned char buffer[12];
    PRGM_GetKey_OS( buffer );
    return ( ( buffer[1] & 0x0F) *10 + ( ( buffer[2] & 0xF0) >> 4 ));
}
{'fraction_non_alphanumeric': 0.13773584905660377, 'fraction_numerical': 0.03207547169811321, 'mean_word_length': 3.9626168224299065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1842340', 'n_tokens_mistral': 209, 'n_tokens_neox': 196, 'n_words': 53}