SDL_GetKeyFromScancode returns always 0

Issue #17 invalid
Former user created an issue

Hi,

I don't know if I am using this properly, but it seems it always returns 0:

Python 2.7.3 (default, Apr 17 2013, 00:06:22) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from SDL2 import * SDL_GetKeyFromScancode(SDL_SCANCODE_A) 0 SDL_GetKeyFromScancode(SDL_SCANCODE_RETURN) 0

Thanks, Milan

Comments (2)

  1. Steven Johnson

    It needs SDL_Init(SDL_INIT_VIDEO) to be called before using those functions.

    (I tried just SDL_Init(SDL_INIT_EVENTS) but they just returned 0s as well.)

  2. Log in to comment