Skip to content

How to read keyboard events using only the core libraries? #3130

Answered by sumofat
kevinmatthes asked this question in Q&A
Discussion options

You must be logged in to vote

Core library for that kind of thing does not really exist. You would need to create your own input library using the available OS specific options and bindings.
Included with ODIN are the vendor libraries and you can use SDL or raylib glfw or others to get keyboard events in a very easy way.
Otherwise I believe you would have to do it the normal platform api specific way.
For example on windows using VkKeyScanExA and GetKeyboardState apis which I believe are available in the core library.
You would need to do that for each platform. If thats not what your looking for than use the previously mentioned platform abstraction layers SDL,GLFW or raylib etc..

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevinmatthes
Comment options

Answer selected by kevinmatthes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants