#Converting char to unicode/keycode or viceversa

2 messages · Page 1 of 1 (latest)

waxen oak
#

(removed this from #help-general after seeing that there is a forum for help)

Good evening!

I am in progress of making a monkeytype/typeracer-esque game in raylib using C, and have come across an issue when it comes to checking if the key I am putting in is correct.

My problem boils down to the fact that both the getKeyPressed() and getCharPressed() functions return an int number and not a const char * such as I have used to store my "Paragraphs to type".

I was wondering if there is a way to convert chars into keycodes or unicode (or vice versa)?

velvet obsidian