The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Simple SDL 2 keyboard key status tutorial
Faluk


Joined: 16 Apr 2015
Posts: 17
Hi,


I'm currently creating a game engine for a game and sometimes is hard to find how SDL works so I'm starting a series of tutorial of how implement different things using SDL.


This one explains how easily detect the state of a key taking advantage of the function SDL_GetKeyboardState.


I hope this is useful for someone.

http://www.falukdevelop.com/2016/08/18/simple-sdl-2-keyboard-key-status/


I will try to write a tutorial every 1~2 weeks. About different topics.