SDL_EnableKeyRepeat problem

Well, I have problem with this function.

I want to diable key repeating in my game for one button, but this function
does nothing when it’s set to SDL_EnableKeyRepeat(0,0). My keyboard always
repeats button when it’s held down.

Thaks

PS: I use SDL_PollEvent to catch events, like this:

while( !quit )
{
isEvent= SDL_PollEvent(&event);

switch( event.type )
{
  case SDL_KEYDOWN:

  switch( event.key.keysym.sym )
  {

  case SDLK_SPACE:
             // do domething but without repeating
             break;

   }

}_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

PS: I use SDL_PollEvent to catch events, like this:

while( !quit )
{
isEvent= SDL_PollEvent(&event);

switch( event.type )
{
case SDL_KEYDOWN:

I don’t see you checking isEvent.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment