-
bad example, it's actually sdl:+k-escape+ as I have written the patch.
2009-06-25 04:43:22 UTC by tril
-
I transcribed these from SDL_keysym.h, enjoy.
Please apply this patch into the code as it's a feature of SDL missing from cl-sdl.
This will allow you to write (= key sdl:+k-esc+) instead of (= key (char-code #\Esc)),
for example.
Thank you.
2009-06-25 04:42:26 UTC by tril
-
cl-sdl only returns events for mouse buttons 1-3.
I used the following hack to return the actual button state instead of
intercepting and filtering it, so I can support the scroll wheel in my program (buttons 4-5).
Please implement more buttons cleanly in the wrapper so I do not have to resort to modifying cl-sdl.
Perhaps return the button state as I have done, and provide macros to logior...
2009-06-25 04:32:46 UTC by tril
-
It appears to be impossible with UFFI to pass a structure by value. It can only
pass pointers to structures. Therefore all SDL bindings which reference SDL_Color
parameters, are expected to be passed by value (C embeds the struct members on the stack),
but CL passes the pointer instead. I have worked around this for the function I needed
(TTF_RenderGlyph_Blended) by changing the...
2009-06-25 04:00:46 UTC by tril
-
I posted this. I meant to log in first.
2009-06-25 02:47:47 UTC by tril
-
I use these functions and they work. Please add them to the distribution.
Thanks.
2009-06-25 02:46:29 UTC by nobody