Perl 6 - the future is here, just unevenly distributed

IRC log for #sdl, 2013-11-30

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
06:32 kaare joined #sdl
12:42 dod joined #sdl
13:01 dod joined #sdl
15:31 dod joined #sdl
19:07 FROGGS joined #sdl
21:42 irctc693 joined #sdl
21:43 irctc693 hello, can i ask a question ?
21:43 FROGGS sure
21:45 irctc693 In while( SDL_PollEvent( &event )) i have if( event.type == SDL_KEYDOWN )  and there i change velocity
21:45 irctc693 and if i continue pressing the button velocity increases
21:45 irctc693 but isn't it supposed to change only once ?
21:45 irctc693 sorry for bad english :)
21:46 FROGGS I think you always get a keydown even due to the keyboard key repeat rate
21:46 FROGGS I think there was an option to disable that...
21:46 irctc693 it's new in SDL2 ?
21:47 FROGGS http://www.libsdl.org/release/SDL-1.2.15/docs/html/sdlenablekeyrepeat.html
21:47 irctc693 In older version everything worked fine
21:47 irctc693 thank you for link
21:47 FROGGS set delay to zero, and to the default when you exit your program
21:47 FROGGS though, this channel here is Perl related
21:48 FROGGS (not C)
21:48 irctc693 hm ok
21:48 irctc693 Thank you
21:48 irctc693 Is this a new feature in SDL2 ?
21:48 irctc693 because the same piece of code worked fine in SDL 1.2
21:49 FROGGS SDL2 is something else, really
21:49 FROGGS this feature is there since at least 1.2.7 AFAIK
21:50 irctc693 hm, ok
21:50 irctc693 Is there C related SDL IRC ?
21:50 FROGGS no, but a forum and a mailing list
21:51 FROGGS see libsdl.org
21:54 irctc693 Hm how to initialize it ? int SDL_EnableKeyRepeat(int delay, int interval);
21:54 irctc693 I tried iSDL_EnableKeyRepeat(0, 0);
21:54 irctc693 I tried SDL_EnableKeyRepeat(0, 0);
21:55 irctc693 but no
21:56 FROGGS hmmm, that should do
21:57 irctc693 missing type specifier - int assumed. Note: C++ does not support default-int
21:57 irctc693 wait maybe  int SDL_EnableKeyRepeat(0, 0);
21:58 irctc693 hm it writes                               error C2078: too many initializers
21:59 irctc693 and it expects a bracket ")" after first 0
21:59 FROGGS I can't help you there, it is a Perl channel :/
22:00 irctc693 yeap okay
22:00 irctc693 Big thanks
22:00 irctc693 :D
22:00 FROGGS yw :o)
22:06 irctc106 joined #sdl
22:08 irctc106 well there is no SDL_EnableKeyRepeat(0,0);  in SDL2 instead now i need to check SDL_Event::key.repeat is 1 or 0.
22:08 irctc106 Thank you FROGGS you really helped me
22:08 irctc106 :D
22:08 FROGGS cool, good luck with SDL2 :o)
22:08 irctc106 left #sdl

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary