You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can do state := sdl.GetKeyboardState(nil), but then state is a pointer. Should this api be a map so I can test using a key such as SDL_SCANCODE_RETURN?
The text was updated successfully, but these errors were encountered:
Yeah, that's definitely better usage and safety wise because there's no separate variable to know the length of the array. It's now using the code from dooots . Thanks!
Given a *uint8 from state how do I test if a scancode is pressed?
http://wiki.libsdl.org/SDL_GetKeyboardState
I can do state := sdl.GetKeyboardState(nil), but then state is a pointer. Should this api be a map so I can test using a key such as SDL_SCANCODE_RETURN?
The text was updated successfully, but these errors were encountered: