Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modified example from FB for keyboard input for SDL
#3
Code:
Dim key as ubyte ptr
Do
       key = SDL_GetKeystate(0)
Loop Until Peek(key + SDLK_ESCAPE)
Can be simplified to:
Code:
Dim key as ubyte ptr
Do
       key = SDL_GetKeystate(0)
Loop Until key[SDLK_ESCAPE]
Fancy, ey?
Reply


Messages In This Thread
Modified example from FB for keyboard input for SDL - by Z!re - 02-20-2005, 03:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)