SDL_GetKeyState missing from SDL-1.3?

Hi
is SDL_GetKeyState removed from SDL-1.3?
i’m asking this because a game which run fine with sdl-1.2 now gives

Undefined symbols:
"_main", referenced from:
__start in crt1.o
"_SDL_GetKeyState", referenced from:
_UKEYS_PROCESSKBD in uKeys.o
_UKEYS_RESETKBD in uKeys.o
ld: symbol(s) not found

when compiling with sdl-1.3 (svn)

thanks
Vittorio

I don’t know if package maintainers for GNU/Linux distros and the like
are already including SDL 1.3, but we really ought to change the names
of the binaries to libsdl13.* since they’re not binary compatible. We
should probably also send word to package maintainers that this is
binary-incompatible with SDL 1.2.* series.

Or maybe word has already gotten out and I’m just worry for nothing.
Anyhow, onto business:On Fri, Feb 6, 2009 at 8:47 PM, Vittorio <vitto.giova at yahoo.it> wrote:

is SDL_GetKeyState removed from SDL-1.3?

Looks like SDL_GetKeyboardState() is all there is.

/**

  • \fn Uint8 *SDL_GetKeyboardState(int *numkeys)
  • \brief Get a snapshot of the current state of the selected keyboard.
  • \param numkeys if non-NULL, receives the length of the returned array.
  • \return An array of key states. Indexes into this array are
    obtained by using ::SDL_scancode values.
  • Example:
  •  Uint8 *state = SDL_GetKeyboardState(NULL);
    
  •  if ( state[SDL_SCANCODE_RETURN)] ) ... <RETURN> is pressed.
    

*/
extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);


http://codebad.com/

thanks for your reply,
i substituted SDL_GetKeyState() with SDL_GetKeyboardState(), but now the
error changes:

uKeys.pas(65,28) Error: Identifier not found "SDL_GetKeyboardState"
uKeys.pas(91,39) Error: Identifier not found "SDL_GetKeyboardState"
uKeys.pas(151) Fatal: There were 2 errors compiling module, stopping

(always better than unreferenced symbol)
i wonder if the error is in the pascal binding…
any ideas?
VittorioOn Sat, Feb 7, 2009 at 11:30 PM, Donny Viszneki <donny.viszneki at gmail.com>wrote:

On Fri, Feb 6, 2009 at 8:47 PM, Vittorio <vitto.giova at yahoo.it> wrote:

is SDL_GetKeyState removed from SDL-1.3?

Looks like SDL_GetKeyboardState() is all there is.

/**

  • \fn Uint8 *SDL_GetKeyboardState(int *numkeys)
  • \brief Get a snapshot of the current state of the selected keyboard.
  • \param numkeys if non-NULL, receives the length of the returned array.
  • \return An array of key states. Indexes into this array are
    obtained by using ::SDL_scancode values.
  • Example:
  •  Uint8 *state = SDL_GetKeyboardState(NULL);
    
  •  if ( state[SDL_SCANCODE_RETURN)] ) ... <RETURN> is pressed.
    

*/
extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);


http://codebad.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Outdated Pascal bindings sounds like a likely candidate considering
that before you were missing linker symbols (implying that you had
the proper compile-time declarations) and now you have a compiler
error!On Sat, Feb 7, 2009 at 10:13 PM, Vittorio <vitto.giova at yahoo.it> wrote:

thanks for your reply,
i substituted SDL_GetKeyState() with SDL_GetKeyboardState(), but now the
error changes:

uKeys.pas(65,28) Error: Identifier not found "SDL_GetKeyboardState"
uKeys.pas(91,39) Error: Identifier not found "SDL_GetKeyboardState"
uKeys.pas(151) Fatal: There were 2 errors compiling module, stopping

(always better than unreferenced symbol)
i wonder if the error is in the pascal binding…
any ideas?


http://codebad.com/